From 0c0a51bdc431c17492b94a4c1f7dfff40076b94e 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pm2.config.js diff --git a/pm2.config.js b/pm2.config.js new file mode 100644 index 0000000..870917b --- /dev/null +++ b/pm2.config.js @@ -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