diff --git a/deploy.sh b/deploy.sh index 0d87f39..564199e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -282,7 +282,15 @@ else FAIL=1 fi -if curl -sf "http://127.0.0.1:${WEB_PORT}/ppt-tool/" > /dev/null; then +info " Waiting for frontend to be ready (Next.js takes ~30-60s to start)..." +WEB_OK=0 +for i in $(seq 1 24); do + if curl -sf "http://127.0.0.1:${WEB_PORT}/ppt-tool/" > /dev/null 2>&1; then + WEB_OK=1; break + fi + sleep 5 +done +if [ "$WEB_OK" -eq 1 ]; then info " Frontend (port ${WEB_PORT}): OK" else warn " Frontend (port ${WEB_PORT}): not responding — check 'docker compose logs web'"