2024-06-06 01:06:41 +00:00
|
|
|
// const config = require('config');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
apps: [
|
|
|
|
{
|
2024-10-06 00:45:56 +00:00
|
|
|
name: 'traxxx',
|
2024-06-06 01:10:02 +00:00
|
|
|
script: 'npm',
|
|
|
|
args: 'run server:prod',
|
2024-06-06 01:06:41 +00:00
|
|
|
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',
|
|
|
|
},
|
|
|
|
}] : []),
|
|
|
|
*/
|
|
|
|
],
|
|
|
|
};
|