[全量] 初始化项目代码、配置、文档及Agent协同harness
This commit is contained in:
27
chat_web_front/ecosystem.config.js
Normal file
27
chat_web_front/ecosystem.config.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// PM2 配置文件
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'chat-web-front',
|
||||
script: 'npm',
|
||||
args: 'run dev',
|
||||
cwd: '/home/gc/gangyan/chat_web_front',
|
||||
interpreter: 'none',
|
||||
env: {
|
||||
NODE_ENV: 'development',
|
||||
},
|
||||
// 日志配置
|
||||
error_file: './logs/pm2-error.log',
|
||||
out_file: './logs/pm2-out.log',
|
||||
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||
merge_logs: true,
|
||||
// 自动重启
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: '1G',
|
||||
// 实例数
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user