Add deployment guide and pm2 process file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 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,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user