调整健康检查等待时间:15秒 → 45秒
All checks were successful
continuous-integration/drone/push Build is passing

问题:
- Build #9 所有步骤成功(编译、部署)
- 但健康检查失败(15秒等待不够)
- Spring Boot 应用需要约30-40秒完全启动

解决:
- 将健康检查等待时间调整为45秒
- 确保服务完全启动后再进行检查

验证:
- 手动测试服务正常运行
- http://154.30.6.21:8123/actuator/health 返回 UP

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
n72595987@gmail.com
2025-11-29 22:09:18 +08:00
parent 8a779a56ac
commit 319cfb4268

View File

@@ -60,7 +60,7 @@ steps:
- name: 健康检查 - name: 健康检查
image: curlimages/curl:latest image: curlimages/curl:latest
commands: commands:
- sleep 15 # 等待服务启动 - sleep 45 # 等待服务完全启动Spring Boot 应用需要约30-40秒
- curl -f http://154.30.6.21:8123/actuator/health || exit 1 - curl -f http://154.30.6.21:8123/actuator/health || exit 1
- echo "✅ 健康检查通过" - echo "✅ 健康检查通过"