diff --git a/deploy.sh b/deploy.sh index fc8516b..1465a1c 100644 --- a/deploy.sh +++ b/deploy.sh @@ -30,13 +30,13 @@ pass "Container restarted. Alembic migrations run on container start." # ── 4. Wait and verify ─────────────────────────────────────────────────────── log "Waiting for app to become healthy..." -for i in $(seq 1 15); do - if $COMPOSE exec -T app sh -c "curl -fs http://localhost:8800/cc-dashboard/healthz > /dev/null 2>&1"; then +for i in $(seq 1 20); do + if curl -fs http://localhost:8800/cc-dashboard/healthz > /dev/null 2>&1; then pass "Healthcheck OK after ${i}s." break fi sleep 1 - if [[ $i -eq 15 ]]; then + if [[ $i -eq 20 ]]; then log "Healthcheck timeout — showing last 40 lines of logs:" $COMPOSE logs --tail=40 app die "App did not start in time."