Files
sanguo_moziplus_v2/ecosystem.config.cjs
2026-05-30 22:14:02 +08:00

26 lines
832 B
JavaScript

module.exports = {
apps: [{
name: 'sanguo-moziplus-v2',
script: 'python3',
args: '-m uvicorn src.main:app --host 0.0.0.0 --port 8083',
cwd: __dirname,
interpreter: 'none',
autorestart: true,
max_restarts: 10,
restart_delay: 3000,
watch: false,
env: {
PYTHONPATH: __dirname,
// 清除 gateway 环境变量,防止 openclaw agent CLI 误走 embedded 路径
// (不触发 hook → GATE 铁律/delegation 铁律不注入)
OPENCLAW_SERVICE_KIND: '',
// 如果不设 BLACKBOARD_ROOT,会从 config/default.yaml 的 data_root 读取
// 如果也没设,默认用 {安装目录}/data/
},
out_file: './logs/daemon.out.log',
error_file: './logs/daemon.err.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
max_memory_restart: '500M',
}]
}