// PM2 process config // Start: pm2 start ecosystem.config.cjs // Save: pm2 save // Startup: pm2 startup systemd module.exports = { apps: [ { name: "homelegance-chat", script: "./dist/index.js", cwd: "/redant/web/homelegance-chatbot", env_file: "/redant/web/homelegance-chatbot/.env.production", instances: 1, autorestart: true, max_memory_restart: "512M", error_file: "/var/log/pm2/homelegance-chat-error.log", out_file: "/var/log/pm2/homelegance-chat-out.log", log_date_format: "YYYY-MM-DD HH:mm:ss", }, ], };