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"