debug: afficher POSTGRES_PASSWORD au deploy pour diagnostiquer l'auth DB
Some checks failed
CI / Lint, Unit Tests & Build (push) Successful in 5m38s
CI / Deploy production (on server) (push) Failing after 20s

This commit is contained in:
Antigravity
2026-06-28 15:47:51 +00:00
parent 73a3d206b0
commit 58fe5eb54f

View File

@@ -221,6 +221,9 @@ for i in $(seq 1 "$HEALTH_CHECK_MAX_ITERATIONS"); do
fi
load_env_docker
echo "DEBUG load_env: POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-NOT_SET}"
echo "DEBUG .env.docker: $(grep '^POSTGRES_PASSWORD=' "$ROOT/.env.docker" 2>/dev/null || echo MISSING)"
echo "DEBUG .env file: $(grep '^POSTGRES_PASSWORD=' "$ROOT/.env" 2>/dev/null || echo MISSING)"
if [ -n "${TELEGRAM_BOT_TOKEN:-}" ] && [ -n "${TELEGRAM_CHAT_ID:-}" ]; then
echo "=== Starting Monitoring Stack (with Telegram bot) ==="
docker compose -f monitoring/docker-compose.monitoring.yml --profile telegram up -d --remove-orphans 2>&1 || echo "WARN: Failed to bring up monitoring stack"