From 7e9727587e0300d3701e4abfd380afec95089877 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Wed, 6 May 2026 19:35:26 +0100 Subject: [PATCH] fix: healthcheck uses host curl, not exec inside container Co-Authored-By: Claude Sonnet 4.6 --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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."