module.exports = { apps: [ { name: 'horux-api', script: 'dist/index.js', cwd: '/root/Horux/apps/api', instances: 2, exec_mode: 'cluster', autorestart: true, max_memory_restart: '1G', kill_timeout: 5000, listen_timeout: 10000, env: { NODE_ENV: 'production', PORT: 4000, }, }, { name: 'horux-web', script: 'node_modules/.bin/next', args: 'start', cwd: '/root/Horux/apps/web', instances: 1, exec_mode: 'fork', autorestart: true, max_memory_restart: '512M', kill_timeout: 5000, env: { NODE_ENV: 'production', PORT: 3000, }, }, ], };