aBER0724 commited on
Commit
32a80bd
·
verified ·
1 Parent(s): 8685e83

Update sync_data.sh

Browse files
Files changed (1) hide show
  1. sync_data.sh +5 -3
sync_data.sh CHANGED
@@ -289,15 +289,17 @@ echo "同步进程已在后台启动 (PID: $!)"
289
  echo "现在启动 MCP Proxy 主程序..."
290
 
291
  # 启动原始的 MCP Proxy 程序
 
 
292
  if [ -f build/sse.js ]; then
293
  echo "启动: node build/sse.js"
294
- exec node build/sse.js
295
  elif [ -f /app/build/sse.js ]; then
296
  echo "启动: node /app/build/sse.js"
297
- exec node /app/build/sse.js
298
  elif [ -f /mcp-proxy-server/build/sse.js ]; then
299
  echo "启动: node /mcp-proxy-server/build/sse.js"
300
- exec node /mcp-proxy-server/build/sse.js
301
  else
302
  echo "错误: 找不到 build/sse.js 文件"
303
  echo "当前目录: $(pwd)"
 
289
  echo "现在启动 MCP Proxy 主程序..."
290
 
291
  # 启动原始的 MCP Proxy 程序
292
+ echo "准备启动 MCP Proxy,端口: ${PORT:-7860},主机: ${HOST:-0.0.0.0}"
293
+
294
  if [ -f build/sse.js ]; then
295
  echo "启动: node build/sse.js"
296
+ PORT=${PORT:-7860} HOST=${HOST:-0.0.0.0} exec node build/sse.js
297
  elif [ -f /app/build/sse.js ]; then
298
  echo "启动: node /app/build/sse.js"
299
+ PORT=${PORT:-7860} HOST=${HOST:-0.0.0.0} exec node /app/build/sse.js
300
  elif [ -f /mcp-proxy-server/build/sse.js ]; then
301
  echo "启动: node /mcp-proxy-server/build/sse.js"
302
+ PORT=${PORT:-7860} HOST=${HOST:-0.0.0.0} exec node /mcp-proxy-server/build/sse.js
303
  else
304
  echo "错误: 找不到 build/sse.js 文件"
305
  echo "当前目录: $(pwd)"