once again
Some checks failed
release / release (push) Failing after 3m36s
test / cargo test (push) Has been cancelled

This commit is contained in:
Michal Vanko 2024-09-18 15:54:41 +02:00
parent eec2ceecf4
commit b547bd9974
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ jobs:
run: cargo build --release
working-directory: axum_server
- name: Run server in background
run: just prod > server.log &
run: just prod
working-directory: axum_server
- uses: cygnetdigital/wait_for_response@v2.0.0
with:

View File

@ -46,6 +46,7 @@ async fn main() {
let port = std::option_env!("PORT").unwrap_or("3080");
let addr = format!("0.0.0.0:{}", port);
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
info!("axum_server listening on http://{}", addr);
axum::serve(listener, app).await.unwrap();
}