// pm2 process file. See DEPLOYMENT.md. module.exports = { apps: [ { name: 'two-keys', script: 'server/dist/index.js', cwd: __dirname, // One instance only: rooms live in this process's memory. instances: 1, exec_mode: 'fork', env: { NODE_ENV: 'production', PORT: 3010, }, }, ], };