From d265903740e2eaf9e669d7e0d10ccaab6aa2b59d Mon Sep 17 00:00:00 2001 From: hbk01 <3243430237@qq.com> Date: Mon, 15 Jan 2024 00:17:22 +0800 Subject: [PATCH] =?UTF-8?q?conf:=20=E6=B7=BB=E5=8A=A0=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.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pm2.config.js diff --git a/pm2.config.js b/pm2.config.js new file mode 100644 index 0000000..6df9991 --- /dev/null +++ b/pm2.config.js @@ -0,0 +1,13 @@ +export const apps = [{ + name: "labplus-server", + script: "./src/index.js", + watch: [ + "src" + ], + ignore_watch: [ + "node_modules" + ], + env: { + "NODE_ENV": "production" + } +}] \ No newline at end of file