module.exports = { apps: [ { name: 'guidly-server', script: 'dist-server/server/index.js', instances: 1, autorestart: true, watch: false, max_memory_restart: '500M', env: { NODE_ENV: 'production', PORT: 3000, }, }, // Bot is integrated into the server process in webhook mode (production). // This separate bot process is only needed for polling mode (development/fallback). // Uncomment if you need to run bot separately: // { // name: 'guidly-bot', // script: 'dist-bot/bot/index.js', // instances: 1, // autorestart: true, // watch: false, // max_memory_restart: '300M', // env: { // NODE_ENV: 'production', // }, // }, ], }