31 lines
512 B
JavaScript
31 lines
512 B
JavaScript
// const config = require('config');
|
|
|
|
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'traxxx',
|
|
script: 'npm',
|
|
args: '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',
|
|
},
|
|
}] : []),
|
|
*/
|
|
],
|
|
};
|