chore(stage): fix bash arithmetic syntax in run-stage.sh
This commit is contained in:
+4
-4
@@ -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
|
dotnet ef database update --project src/NexusReader.Data --startup-project src/NexusReader.Web --no-build
|
||||||
|
|
||||||
# 7. Wait for Web Application to respond
|
# 7. Wait for Web Application to respond
|
||||||
echo "⏳ Waiting for Web Application to start on http://localhost:$WEB_PORT..."
|
echo "⏳ Waiting for Web Application to start on http://localhost:$WEB_PORT/health..."
|
||||||
MAX_WEB_ATTEMPTS=45
|
MAX_WEB_ATTEMPTS=30
|
||||||
web_attempt=0
|
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
|
sleep 2
|
||||||
web_attempt=$((web_attempt + 1))
|
web_attempt=$((web_attempt + 1))
|
||||||
if [ $web_attempt -ge $MAX_WEB_ATTEMPTS ]; then
|
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
|
docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" logs web
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user