0606.5
Some checks failed
Next.js CI/CD 流水线 / deploy (push) Failing after 12s

This commit is contained in:
2025-06-06 01:46:34 +08:00
parent ac2068755b
commit 218812b768
3 changed files with 64 additions and 36 deletions

View File

@@ -66,7 +66,7 @@ jobs:
docker run -d \
--name saas2-app \
--restart unless-stopped \
-p 3000:3000 \
-p 3003:3000 \
--health-cmd="wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1" \
--health-interval=30s \
--health-timeout=10s \
@@ -82,7 +82,7 @@ jobs:
echo "✅ 部署成功!容器状态:"
docker ps | grep saas2-app
echo ""
echo "🌐 应用访问地址: http://$(hostname -I | awk '{print $1}'):3000"
echo "🌐 应用访问地址: http://$(hostname -I | awk '{print $1}'):3003"
# 测试健康检查
echo "🔍 测试健康检查..."