// PM2 config template. Each install keeps its own copy as ecosystem.config.js (not in git, // so deploys never change it); scripts/deploy.sh creates it from this file the first time. // Change the app names (unique per install on a server) and the frontend port to suit. module.exports = { apps: [ { name: 'hope-events-backend', cwd: __dirname + '/backend', script: 'src/index.js', env: { NODE_ENV: 'production' }, max_memory_restart: '500M', }, { name: 'hope-events-frontend', cwd: __dirname + '/frontend', script: 'npm', args: 'start -- -p 3000', env: { NODE_ENV: 'production' }, max_memory_restart: '500M', }, ], };