From 52085f21b58ffbf515cd5287f4d2cd5db7137f5a Mon Sep 17 00:00:00 2001 From: hbk01 <3243430237@qq.com> Date: Mon, 15 Jan 2024 00:32:02 +0800 Subject: [PATCH] =?UTF-8?q?conf:=20=E4=BF=AE=E6=94=B9=20pm2=20=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pm2.config.cjs | 15 +++++++++++++++ pm2.config.js | 13 ------------- 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 pm2.config.cjs delete mode 100644 pm2.config.js diff --git a/pm2.config.cjs b/pm2.config.cjs new file mode 100644 index 0000000..870917b --- /dev/null +++ b/pm2.config.cjs @@ -0,0 +1,15 @@ +module.exports = { + apps: [{ + name: "labplus-server", + script: "./src/index.js", + watch: [ + "src" + ], + ignore_watch: [ + "node_modules" + ], + env: { + "NODE_ENV": "production" + } + }] +} \ No newline at end of file diff --git a/pm2.config.js b/pm2.config.js deleted file mode 100644 index e0ceae4..0000000 --- a/pm2.config.js +++ /dev/null @@ -1,13 +0,0 @@ -export const apps = [{ - name: "labplus-server", - script: "./src/index.js", - watch: [ - "src" - ], - ignore_watch: [ - "node_modules" - ], - env: { - "NODE_ENV": "production" - } -}]