fix: check-prod-stack checks the 4 frontends, not stale fe0
This commit is contained in:
@@ -47,8 +47,17 @@ echo "=== be0 → minio:9000 (HTTP) ==="
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== fe0 → be0 proxy env ==="
|
echo "=== frontends serving (nginx static builds) ==="
|
||||||
"${COMPOSE[@]}" exec -T fe0 /bin/sh -c 'echo "VITE_DEV_PROXY_TARGET=${VITE_DEV_PROXY_TARGET:-<unset>}"'
|
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 ""
|
echo ""
|
||||||
printf 'Done. If be0 /health failed, read logs: docker compose --env-file .env -f docker-compose.prod.yml logs be0\n'
|
printf 'Done. If be0 /health failed, read logs: docker compose --env-file .env -f docker-compose.prod.yml logs be0\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user