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