From eb37b568ae7e62fd3d623ebdeeda7448fcd0452a Mon Sep 17 00:00:00 2001 From: easyai Date: Wed, 22 Jul 2026 08:50:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20=E4=BD=BF=E7=94=A8=20/api/v1=20?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=8F=91=E5=B8=83=E5=81=A5=E5=BA=B7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 Compose 发布脚本的 API、就绪和 Web 反代探针切换到统一公开前缀,避免发布完成后仍只验证旧兼容入口。\n\n验证:bash -n;ShellCheck;ci-build-images-test.sh;pipeline-test.sh。 --- scripts/deploy-compose.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deploy-compose.sh b/scripts/deploy-compose.sh index 919df75..618747d 100755 --- a/scripts/deploy-compose.sh +++ b/scripts/deploy-compose.sh @@ -248,14 +248,14 @@ deploy() { api_port="$(published_port api 8088 "${AI_GATEWAY_API_PORT:-8088}")" web_port="$(published_port web 80 "${AI_GATEWAY_WEB_PORT:-5178}")" - wait_for_http "api health" "http://127.0.0.1:${api_port}/healthz" "easyai-ai-gateway" - wait_for_http "api readiness" "http://127.0.0.1:${api_port}/readyz" '"ok":true' - wait_for_http "web reverse proxy" "http://127.0.0.1:${web_port}/gateway-api/healthz" "easyai-ai-gateway" + wait_for_http "api health" "http://127.0.0.1:${api_port}/api/v1/healthz" "easyai-ai-gateway" + wait_for_http "api readiness" "http://127.0.0.1:${api_port}/api/v1/readyz" '"ok":true' + wait_for_http "web reverse proxy" "http://127.0.0.1:${web_port}/api/v1/healthz" "easyai-ai-gateway" wait_for_http "web app" "http://127.0.0.1:${web_port}/" "EasyAI AI Gateway" echo "[ai-gateway] deployment succeeded" echo "[ai-gateway] Web: http://127.0.0.1:${web_port}" - echo "[ai-gateway] API: http://127.0.0.1:${api_port}/healthz" + echo "[ai-gateway] API: http://127.0.0.1:${api_port}/api/v1/healthz" } case "$ACTION" in