From f23a425f1ef119a7f26afa9e6c730a8ff7a237e3 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 14 Jun 2026 15:26:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=83=A8=E7=BD=B2=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=9B=9E=E6=98=BE=E6=98=BE=E7=A4=BA=E5=85=AC=E7=BD=91=20IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 7c786aa..30c603c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -21,8 +21,12 @@ cmd_up() { info "启动服务..." docker compose up -d 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() {