deploy: fix directus access
This commit is contained in:
@@ -73,6 +73,13 @@ jobs:
|
||||
docker compose restart directus
|
||||
|
||||
echo "==> Vérification santé"
|
||||
sleep 5
|
||||
curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"'
|
||||
for i in $(seq 1 12); do
|
||||
if curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"'; then
|
||||
echo "Déploiement OK"
|
||||
exit 0
|
||||
fi
|
||||
echo " Attente... ($i/12)"
|
||||
sleep 5
|
||||
done
|
||||
echo "Échec : Directus ne répond pas après 60s"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user