chore: 部署完成回显显示公网 IP #87

Merged
huanghaosheng merged 1 commits from fix/workflow-fix into develop 2026-06-14 15:27:58 +08:00

View File

@@ -21,8 +21,12 @@ cmd_up() {
info "启动服务..." info "启动服务..."
docker compose up -d docker compose up -d
info "服务已启动" info "服务已启动"
info "前端: http://localhost"
info "健康检查: http://localhost/api/health" # 获取公网 IP
PUBLIC_IP=$(curl -s --max-time 5 ifconfig.me 2>/dev/null || curl -s --max-time 5 ip.sb 2>/dev/null || echo "YOUR_SERVER_IP")
info "前端: http://${PUBLIC_IP}:9000"
info "健康检查: http://${PUBLIC_IP}:9000/api/health"
} }
cmd_down() { cmd_down() {