From 3e51dda109d504066aae16bad7da1d0cdd09c8f4 Mon Sep 17 00:00:00 2001 From: nzambello Date: Thu, 10 Feb 2022 10:53:12 +0100 Subject: [PATCH] chore: add pm2 config for deploy --- 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..1b4f299 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,18 @@ +module.exports = { + apps: [ + { + name: "explit", + script: "npm", + args: "start", + autorestart: true, + watch: false, + max_memory_restart: "1G", + env: { + NODE_ENV: "production", + }, + env_production: { + NODE_ENV: "production", + }, + }, + ], +};