once again
This commit is contained in:
parent
eec2ceecf4
commit
b547bd9974
@ -31,7 +31,7 @@ jobs:
|
|||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
working-directory: axum_server
|
working-directory: axum_server
|
||||||
- name: Run server in background
|
- name: Run server in background
|
||||||
run: just prod > server.log &
|
run: just prod
|
||||||
working-directory: axum_server
|
working-directory: axum_server
|
||||||
- uses: cygnetdigital/wait_for_response@v2.0.0
|
- uses: cygnetdigital/wait_for_response@v2.0.0
|
||||||
with:
|
with:
|
||||||
|
@ -46,6 +46,7 @@ async fn main() {
|
|||||||
let port = std::option_env!("PORT").unwrap_or("3080");
|
let port = std::option_env!("PORT").unwrap_or("3080");
|
||||||
let addr = format!("0.0.0.0:{}", port);
|
let addr = format!("0.0.0.0:{}", port);
|
||||||
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
|
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
|
||||||
|
info!("axum_server listening on http://{}", addr);
|
||||||
axum::serve(listener, app).await.unwrap();
|
axum::serve(listener, app).await.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user