traxxx/ecosystem.config.js

29 lines
500 B
JavaScript
Raw Normal View History

2023-07-24 20:21:05 +00:00
const config = require('config');
2023-06-19 00:51:01 +00:00
module.exports = {
apps: [
{
name: 'traxxx',
script: 'src/init.js',
exec_mode: 'cluster',
instances: 2,
restart_delay: 3000,
args: '--server',
merge_logs: true,
env: {
NODE_ENV: 'production',
},
},
2023-07-24 20:21:05 +00:00
...(config.analytics.enabled ? [{
name: 'umami',
script: 'npm start',
cwd: process.env.UMAMI_DIR || '../umami',
restart_delay: 3000,
merge_logs: true,
env: {
NODE_ENV: 'production',
},
}] : []),
2023-06-19 00:51:01 +00:00
],
};