From e5c82b1a954a05ba1dd3cd224698a1472531059d Mon Sep 17 00:00:00 2001 From: chenqi Date: Sat, 28 Feb 2026 17:09:41 +0800 Subject: [PATCH] fix: correct health check endpoint from /api/v1/health to /health --- spug/deploy-docker-compose.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spug/deploy-docker-compose.sh b/spug/deploy-docker-compose.sh index d42bc7d..8822f7a 100644 --- a/spug/deploy-docker-compose.sh +++ b/spug/deploy-docker-compose.sh @@ -11,8 +11,8 @@ GIT_REPO="${SPUG_GIT_URL:-https://gitea.gentronhealth.com/chenqi/hospital_perfor GIT_BRANCH="${SPUG_GIT_BRANCH:-main}" # 服务配置 -BACKEND_PORT="${BACKEND_PORT:-8000}" -FRONTEND_PORT="${FRONTEND_PORT:-80}" +BACKEND_PORT="${BACKEND_PORT:-5757}" +FRONTEND_PORT="${FRONTEND_PORT:-5758}" # 环境变量 export DATABASE_HOST="${DATABASE_HOST:-192.168.110.252}" @@ -162,7 +162,7 @@ max_attempts=10 attempt=1 while [ $attempt -le $max_attempts ]; do - if curl -f -s "http://localhost:${BACKEND_PORT}/api/v1/health" > /dev/null 2>&1; then + if curl -f -s "http://localhost:${BACKEND_PORT}/health" > /dev/null 2>&1; then echo "✅ 后端 API 健康检查通过" break else