From b362f957908404aa32de1af228336055f32308e1 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 19 Jun 2023 02:51:01 +0200 Subject: [PATCH] Added pm2 ecosystem file. --- ecosystem.config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 00000000..e9e3495e --- /dev/null +++ b/ecosystem.config.js @@ -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', + }, + }, + ], +};