From d2410e97939704206be92ff34c27c776d74bdafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Jasi=C5=84ski?= Date: Sun, 14 Jun 2026 15:09:58 +0200 Subject: [PATCH] chore(stage): fix bash arithmetic syntax in run-stage.sh --- run-stage.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run-stage.sh b/run-stage.sh index d5bc6ec..db787f5 100755 --- a/run-stage.sh +++ b/run-stage.sh @@ -81,14 +81,14 @@ export ConnectionStrings__PostgresConnection="Host=127.0.0.1;Port=$POSTGRES_PORT dotnet ef database update --project src/NexusReader.Data --startup-project src/NexusReader.Web --no-build # 7. Wait for Web Application to respond -echo "⏳ Waiting for Web Application to start on http://localhost:$WEB_PORT..." -MAX_WEB_ATTEMPTS=45 +echo "⏳ Waiting for Web Application to start on http://localhost:$WEB_PORT/health..." +MAX_WEB_ATTEMPTS=30 web_attempt=0 -until curl -s -f "http://localhost:$WEB_PORT" >/dev/null; do +until curl -s -f "http://localhost:$WEB_PORT/health" >/dev/null; do sleep 2 web_attempt=$((web_attempt + 1)) if [ $web_attempt -ge $MAX_WEB_ATTEMPTS ]; then - echo "⚠️ Warning: Web app is not responding yet on http://localhost:$WEB_PORT, but let's check logs..." + echo "⚠️ Warning: Web app is not responding yet on http://localhost:$WEB_PORT/health, but let's check logs..." docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" logs web break fi