Prepare game updates and single-process PM2 deployment
This commit is contained in:
@@ -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' },
|
||||
}],
|
||||
};
|
||||
Reference in New Issue
Block a user