Prepare game updates and single-process PM2 deployment

This commit is contained in:
2026-10-14 19:13:36 +09:00
parent 4f24129e29
commit 22792bc2b4
50 changed files with 1546 additions and 197 deletions
+21
View File
@@ -0,0 +1,21 @@
const path = require('node:path');
module.exports = {
apps: [{
name: 'dragon-ball',
cwd: __dirname,
script: 'dist/server/src/server/index.js',
node_args: [`--env-file=${path.join(__dirname, '.env')}`],
exec_mode: 'fork',
instances: 1,
watch: false,
autorestart: true,
restart_delay: 3000,
min_uptime: '10s',
max_restarts: 10,
wait_ready: true,
listen_timeout: 30000,
kill_timeout: 15000,
env: { NODE_ENV: 'production' },
}],
};