From 100cacdfa47bfd7e7c7b6e85c1b538bd63af9d63 Mon Sep 17 00:00:00 2001 From: bingshuo <565183519@qq.com> Date: Wed, 13 May 2026 23:17:29 +0800 Subject: [PATCH] =?UTF-8?q?D96=20=E4=BF=AE=E5=A4=8D:=20PM2=20ecosystem?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20.cjs=20=E5=90=8E=E7=BC=80(=E8=A7=84?= =?UTF-8?q?=E9=81=BFtype:module=E5=86=B2=E7=AA=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/mcp-server/ecosystem.config.cjs | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 server/mcp-server/ecosystem.config.cjs diff --git a/server/mcp-server/ecosystem.config.cjs b/server/mcp-server/ecosystem.config.cjs new file mode 100644 index 0000000..483d592 --- /dev/null +++ b/server/mcp-server/ecosystem.config.cjs @@ -0,0 +1,32 @@ +/** + * 铸渊 MCP Server · PM2 生态系统配置 + * 使用 .cjs 后缀强制 CommonJS,不受 package.json "type": "module" 影响 + */ +module.exports = { + apps: [{ + name: 'guanghulab-mcp-server', + script: 'index.js', + cwd: __dirname, + instances: 1, + autorestart: true, + watch: false, + max_memory_restart: '128M', + env: { + NODE_ENV: 'production', + MCP_PORT: '8083', + MCP_HOST: '127.0.0.1', + GITEA_URL: 'http://127.0.0.1:3001', + GITEA_TOKEN: '3e16b79c427bb44b77c00b319aa641bde8f61d84', + GITEA_OWNER: 'bingshuo', + GITEA_REPO: 'guanghulab', + REPO_DIR: '/data/guanghulab/repo', + MCP_ACCESS_KEY_PATH: '/data/guanghulab/mcp-server/.access-key', + }, + log_file: '/data/guanghulab/.runtime/logs/mcp-server-combined.log', + error_file: '/data/guanghulab/.runtime/logs/mcp-server-error.log', + out_file: '/data/guanghulab/.runtime/logs/mcp-server-out.log', + log_date_format: 'YYYY-MM-DD HH:mm:ss Z', + merge_logs: true, + time: true, + }], +};