From 2a38d71ea9b2a3b2ee14bf26e1fca6144ca26edd Mon Sep 17 00:00:00 2001 From: root Date: Sat, 10 Oct 2020 09:54:39 +0700 Subject: [PATCH] Add ecosystem --- ecosystem.config.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..5bedf78 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,18 @@ +module.exports = { + apps : [{ + name: 'FCM-SDK-Admin', + script: 'index.js', + exec_mode: 'cluster', + instances: "1", + watch: true, + env: { + "PORT": 3002, + "NODE_ENV": "development", + }, + env_production : { + "PORT": 3002, + "NODE_ENV": "production" + } + }] +}; +