auto-sync: 2026-05-17 07:30:33
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 'sanguo-moziplus-v2',
|
||||
script: require('path').resolve(__dirname, '.venv/bin/uvicorn'),
|
||||
args: 'src.main:app --host 0.0.0.0 --port 8083',
|
||||
script: 'python3',
|
||||
args: '-m uvicorn src.main:app --host 0.0.0.0 --port 8083',
|
||||
cwd: __dirname,
|
||||
interpreter: 'none',
|
||||
autorestart: true,
|
||||
@@ -11,8 +11,13 @@ module.exports = {
|
||||
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',
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user