deploy: fix directus access
This commit is contained in:
@@ -73,6 +73,13 @@ jobs:
|
|||||||
docker compose restart directus
|
docker compose restart directus
|
||||||
|
|
||||||
echo "==> Vérification santé"
|
echo "==> Vérification santé"
|
||||||
sleep 5
|
for i in $(seq 1 12); do
|
||||||
curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"'
|
if curl -sf http://localhost:8066/server/health | grep -q '"status":"ok"'; then
|
||||||
echo "Déploiement OK"
|
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