From d46fa708e77dc2f60834a25c0c92fb9ffcc3006f Mon Sep 17 00:00:00 2001 From: Benoit Date: Wed, 27 May 2026 21:48:27 +0200 Subject: [PATCH] fix: health check HTTPS en mode production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - start.sh teste maintenant https://localhost:3000 en production - Ajout flag -k à curl pour accepter certificat auto-signé - Correction timeout qui empêchait le démarrage --- start.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 7f22df1..0490a1c 100755 --- a/start.sh +++ b/start.sh @@ -107,8 +107,16 @@ cd .. # Attendre que le serveur soit prêt echo "" echo -e "${YELLOW}⏳ Attente démarrage serveur...${NC}" + +# Déterminer le protocole selon le mode +if [ "$1" != "--dev" ]; then + HEALTH_URL="https://localhost:3000/health" +else + HEALTH_URL="http://localhost:3000/health" +fi + for i in {1..30}; do - if curl -sf http://localhost:3000/health > /dev/null 2>&1; then + if curl -kssf "$HEALTH_URL" > /dev/null 2>&1; then echo -e "${GREEN}✓ Serveur prêt${NC}" break fi