From 147152a636a9e8e4d4b992503210a079574b2b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=8B=A5?= Date: Sun, 8 Mar 2026 18:15:55 +0800 Subject: [PATCH] =?UTF-8?q?sync:=20=E8=84=9A=E6=9C=AC=E4=B8=8E=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=20|=20=E5=8E=9F=E5=9B=A0:=20=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=88=96=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/本地启动.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/本地启动.sh b/scripts/本地启动.sh index 0929f7d5..69ed8203 100644 --- a/scripts/本地启动.sh +++ b/scripts/本地启动.sh @@ -25,7 +25,8 @@ if ! curl -sf http://localhost:8080/health >/dev/null; then fi echo "soul-api 健康检查通过" -# 3. 启动 soul-admin +# 3. 启动 soul-admin(前台,Ctrl+C 退出时会一并停止 soul-api) +trap "kill $API_PID 2>/dev/null || true" EXIT echo "" echo "===== 2. 启动 soul-admin(端口 5174)=====" echo "访问 http://localhost:5174 默认账号 admin / admin123"