guanghulab/server/age-os/ecosystem.brain.config.js
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

51 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* PM2 配置 · 大脑服务器进程管理
* 铸渊 · ICE-GL-ZY001
*
* 运行在 ZY-SVR-005 (43.156.237.110) · 大脑服务器
* 进程MCP Server (port 3100) + Agent Scheduler
*/
module.exports = {
apps: [
{
name: 'age-os-mcp',
script: 'mcp-server/server.js',
cwd: '/opt/zhuyuan-brain',
env: {
NODE_ENV: 'production',
MCP_PORT: 3100,
DB_HOST: 'localhost',
DB_PORT: 5432,
DB_NAME: 'age_os_brain',
DB_USER: 'zhuyuan'
},
instances: 1,
autorestart: true,
max_memory_restart: '512M',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
error_file: '/opt/zhuyuan-brain/logs/mcp-error.log',
out_file: '/opt/zhuyuan-brain/logs/mcp-out.log',
merge_logs: true
},
{
name: 'age-os-agents',
script: 'agents/scheduler.js',
cwd: '/opt/zhuyuan-brain',
env: {
NODE_ENV: 'production',
DB_HOST: 'localhost',
DB_PORT: 5432,
DB_NAME: 'age_os_brain',
DB_USER: 'zhuyuan'
},
instances: 1,
autorestart: true,
max_memory_restart: '256M',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
error_file: '/opt/zhuyuan-brain/logs/agents-error.log',
out_file: '/opt/zhuyuan-brain/logs/agents-out.log',
merge_logs: true
}
]
};