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