chore: update prod healthchecks
Some checks failed
Deploy to Staging / Build Images (push) Successful in 32s
Deploy to Staging / Verify Staging (push) Has been cancelled
Deploy to Staging / Notify Staging Ready (push) Has been cancelled
Deploy to Staging / Notify Staging Failure (push) Has been cancelled
Deploy to Staging / Deploy to Staging (push) Has been cancelled

This commit is contained in:
Eric Gullickson
2026-02-03 20:55:33 -06:00
parent efbbe34080
commit 40f2cace29

View File

@@ -298,18 +298,18 @@ jobs:
- name: Wait for backend health - name: Wait for backend health
run: | run: |
for i in 1 2 3 4 5 6; do for i in $(seq 1 24); do
if docker exec mvp-backend-$TARGET_STACK curl -sf http://localhost:3001/health > /dev/null 2>&1; then if docker exec mvp-backend-$TARGET_STACK curl -sf http://localhost:3001/health > /dev/null 2>&1; then
echo "OK: Backend health check passed" echo "OK: Backend health check passed"
exit 0 exit 0
fi fi
if [ $i -eq 6 ]; then if [ $i -eq 24 ]; then
echo "ERROR: Backend health check failed after 6 attempts" echo "ERROR: Backend health check failed after 6 attempts"
docker logs mvp-backend-$TARGET_STACK --tail 100 docker logs mvp-backend-$TARGET_STACK --tail 100
exit 1 exit 1
fi fi
echo "Attempt $i/6: Backend not ready, waiting 10s..." echo "Attempt $i/24: Backend not ready, waiting 10s..."
sleep 10 sleep 5
done done
- name: External health check - name: External health check