// PM2 config template. Each install keeps its own copy as ecosystem.config.cjs (not in git, so // deploys never change it); crosscode creates it from this file the first time with the church's // PM2 names and ports. module.exports = { apps: [ { name: 'accounts-backend', cwd: __dirname + '/backend', script: 'dist/index.js', env: { NODE_ENV: 'production' }, max_memory_restart: '400M', }, { name: 'accounts-frontend', cwd: __dirname + '/frontend', script: 'npm', args: 'start -- -p 3200', env: { NODE_ENV: 'production' }, max_memory_restart: '400M', }, ], };