fix: check-prod-stack checks the 4 frontends, not stale fe0
CI/CD / backend (push) Failing after 2m59s
CI/CD / deploy (push) Successful in 28s
CI/CD / frontend (push) Successful in 3m46s

This commit is contained in:
2026-06-30 10:25:38 +07:00
parent ecff378fab
commit f3614230bf
+11 -2
View File
@@ -47,8 +47,17 @@ echo "=== be0 → minio:9000 (HTTP) ==="
echo "OK"
echo ""
echo "=== fe0 → be0 proxy env ==="
"${COMPOSE[@]}" exec -T fe0 /bin/sh -c 'echo "VITE_DEV_PROXY_TARGET=${VITE_DEV_PROXY_TARGET:-<unset>}"'
echo "=== frontends serving (nginx static builds) ==="
for svc_port in \
"frontend_user:${FE_PORT}" \
"frontend_admin:${FE_ADMIN_PORT:-8082}" \
"frontend_investigator:${FE_INV_PORT:-8083}" \
"frontend_publisher:${FE_PUB_PORT:-8084}"; do
svc="${svc_port%%:*}"; port="${svc_port##*:}"
code=$(curl -s -m5 -o /dev/null -w '%{http_code}' "http://127.0.0.1:${port}" || echo 000)
echo " ${svc} :${port} -> ${code}"
[[ "$code" == "200" ]] || { echo " ${svc} not serving (HTTP ${code})"; exit 1; }
done
echo ""
printf 'Done. If be0 /health failed, read logs: docker compose --env-file .env -f docker-compose.prod.yml logs be0\n'