Added pm2 ecosystem file.

This commit is contained in:
DebaucheryLibrarian 2023-06-19 02:51:01 +02:00
parent 34613a92c5
commit b362f95790
1 changed files with 19 additions and 0 deletions

19
ecosystem.config.js Normal file
View File

@ -0,0 +1,19 @@
// const config = require('config');
module.exports = {
apps: [
// LEAFS
{
name: 'traxxx',
script: 'src/init.js',
exec_mode: 'cluster',
instances: 2,
restart_delay: 3000,
args: '--server',
merge_logs: true,
env: {
NODE_ENV: 'production',
},
},
],
};