From b547bd99742c14373d105801ec47462795b4125c Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Wed, 18 Sep 2024 15:54:41 +0200 Subject: [PATCH] once again --- .gitea/workflows/release.yaml | 2 +- axum_server/src/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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(); }