From e5f88dbcb9f208b91261770cc1009dadb83ca52d Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Thu, 6 Jun 2024 03:04:24 +0200 Subject: [PATCH] Added pm2 ecosystem file. --- ecosystem.config.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..b52d8a4 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,29 @@ +// import config from 'config'; + +export default { + apps: [ + { + name: 'newtraxxx', + script: 'npm 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', + }, + }] : []), + */ + ], +};