whatsapp-bot/ecosystem.config.cjs
Martin Porwoll 67fe3992b4 fix: use relative log paths for PM2 (no root access needed)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 16:24:30 +00:00

20 lines
439 B
JavaScript

module.exports = {
apps: [
{
name: 'whatsapp-bot',
script: 'dist/server.js',
node_args: '--env-file=.env',
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '512M',
env: {
NODE_ENV: 'production',
},
error_file: './logs/whatsapp-bot-error.log',
out_file: './logs/whatsapp-bot-out.log',
time: true,
},
],
}