Added pm2 ecosystem file to repo.

This commit is contained in:
DebaucheryLibrarian 2024-06-06 03:06:41 +02:00
parent 678c2ab5e0
commit 7eb61a2a61
1 changed files with 29 additions and 0 deletions

29
ecosystem.config.cjs Normal file
View File

@ -0,0 +1,29 @@
// const config = require('config');
module.exports = {
apps: [
{
name: 'newtraxxx',
script: 'npm run server:prod',
exec_mode: 'cluster',
instances: 2,
restart_delay: 3000,
merge_logs: true,
env: {
NODE_ENV: 'production',
},
},
/*
...(config.analytics.enabled ? [{
name: 'umami',
script: 'npm start',
cwd: process.env.UMAMI_DIR || '../umami',
restart_delay: 3000,
merge_logs: true,
env: {
NODE_ENV: 'production',
},
}] : []),
*/
],
};