From fd314b650b43fe826d5c9a2018f0c9be29d84a36 Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 1 Jul 2021 14:06:13 +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..011bd2b --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,14 @@ +module.exports = { + apps: [ + { + name: "blog-fs", + script: "npm", + args: "run start", + watch: false, + ignore_watch: ["node_modules"], + log_date_format: "MM-DD HH:mm:ss.SSS Z", + env: {}, + max_restarts: 5, + }, + ], +};