D96 修复: PM2 ecosystem配置 .cjs 后缀(规避type:module冲突)
This commit is contained in:
parent
deab1d97cc
commit
100cacdfa4
32
server/mcp-server/ecosystem.config.cjs
Normal file
32
server/mcp-server/ecosystem.config.cjs
Normal file
@ -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,
|
||||||
|
}],
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user