Files
chat-one-service/ecosystem.config.js
alboped 132f51705e feat: 增强 Chat 能力并补充单机部署方案
完善会话消息删除、Qwen 联网搜索/深度思考参数与 SSE 来源事件,同时增加请求体日志与 TS6 配置兼容调整,并新增 Ubuntu+PM2+Nginx 的部署文档与脚本以支持可回滚发布。

Made-with: Cursor
2026-04-23 22:31:18 +08:00

22 lines
549 B
JavaScript

module.exports = {
apps: [
{
name: 'chat-one-service',
script: 'dist/main.js',
cwd: '/srv/chat-one-service/current',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '1G',
merge_logs: true,
out_file: '/srv/chat-one-service/shared/logs/pm2-out.log',
error_file: '/srv/chat-one-service/shared/logs/pm2-error.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
env_production: {
NODE_ENV: 'production',
},
},
],
};