once again
This commit is contained in:
parent
eec2ceecf4
commit
b547bd9974
@ -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:
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user