From 7700100a7db88c8de86cc60fd65d117fbbdeb8d4 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 2 May 2021 21:11:34 +0800 Subject: [PATCH] build: add pm2 ecosystem config. --- ecosystem.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..88298d1 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,14 @@ +module.exports = { + apps: [ + { + name: 'fennec-be', + script: 'npm', + args: 'run start:prod', + watch: false, + ignore_watch: ['node_modules'], + log_date_format: 'MM-DD HH:mm:ss.SSS Z', + env: {}, + max_restarts: 5, + }, + ], +};