// PM2 进程管理配置 // 使用方式: pm2 start ecosystem.config.js module.exports = { apps: [ { name: 'bigwo-server', cwd: '/www/wwwroot/demo.tensorgrove.com.cn/server', script: 'app.js', instances: 1, exec_mode: 'fork', autorestart: true, watch: false, max_memory_restart: '512M', env: { NODE_ENV: 'production', }, error_file: '/var/log/bigwo/server-error.log', out_file: '/var/log/bigwo/server-out.log', merge_logs: true, log_date_format: 'YYYY-MM-DD HH:mm:ss Z', }, ], };