24 lines
723 B
JavaScript
24 lines
723 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,
|
|
// BLACKBOARD_ROOT: '/Users/chufeng/.sanguo_projects/sanguo_moziplus_v2/data',
|
|
// 如果不设 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',
|
|
}]
|
|
}
|