From 74b39c48860a02cfc68c1b52930007fa5b0cf1de Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Thu, 19 Aug 2021 15:29:48 +0530 Subject: [PATCH] Added PM2 config --- ecosystem.config.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..5ed647c --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,21 @@ +module.exports = { + apps: [ + { + name: 'assembly', + exec_mode: 'cluster', + instances: 'max', + script: './node_modules/nuxt/bin/nuxt.js', + args: 'start', + env: { + NODE_ENV: 'production', + HOST: 'localhost', + PORT: 4000, + }, + env_production: { + NODE_ENV: 'production', + PORT: '4000', + HOST: 'localhost' + }, + }, + ], +}