Check Studio health on an explicit API route
studio CI and deployment / verify-and-deploy (push) Successful in 7m56s

This commit is contained in:
2026-10-25 22:10:57 +08:00
parent b943951bed
commit eb41d7d524
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ rollback(){ if [ -n "$previous" ]; then write_compose "$previous"; docker compos
trap rollback ERR
docker compose -p prompt-studio -f /opt/prompt-studio/compose.yml up -d
for attempt in {1..40}; do
if curl -fsS http://127.0.0.1:18134/studio/api/index >/dev/null; then printf '%s' "prompt-studio:$sha" > /opt/prompt-studio/image; exit 0; fi
if curl -fsS http://127.0.0.1:18134/studio/api/health >/dev/null; then printf '%s' "prompt-studio:$sha" > /opt/prompt-studio/image; exit 0; fi
sleep 2
done
false