diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 7391584..b2c6939 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -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: diff --git a/axum_server/src/main.rs b/axum_server/src/main.rs index 59b43be..764f4c3 100644 --- a/axum_server/src/main.rs +++ b/axum_server/src/main.rs @@ -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(); }