diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 77befff..a446bf9 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -203,6 +203,13 @@ command -v ttyd >/dev/null 2>&1 && systemctl --user restart box-console 2>/dev/n sleep 2 echo "--- Health ---" +# Gateway-Kaltstart-Fenster: bis ~12 s tolerieren, DANN hart scheitern (ohne Gateway +# ist der LLM-Datenpfad tot — das muss den Karten-Runner rot machen). +for _i in $(seq 1 10); do + curl -sf -m 3 http://127.0.0.1:9010/gw/health >/dev/null 2>&1 && break + [ "$_i" -eq 10 ] && { echo "FEHLER: mc2-gateway (:9010) antwortet nicht"; exit 1; } + sleep 1 +done curl -sf http://127.0.0.1:9010/gw/health && echo curl -sf http://127.0.0.1:9001/api/health && echo