Add deployment guide and pm2 process file

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 09:40:04 +02:00
co-authored by Claude Opus 5.5
parent 0de6617c82
commit 037b98f5e1
3 changed files with 213 additions and 0 deletions
+17
View File
@@ -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,
},
},
],
};