From de166675687d34ea6e8a723f4392fd4543000f04 Mon Sep 17 00:00:00 2001 From: hbk01 <3243430237@qq.com> Date: Mon, 15 Jan 2024 00:35:31 +0800 Subject: [PATCH] =?UTF-8?q?conf:=20pm2=20=E6=96=B0=E5=A2=9E=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pm2.config.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pm2.config.cjs b/pm2.config.cjs index 870917b..35cf586 100644 --- a/pm2.config.cjs +++ b/pm2.config.cjs @@ -9,7 +9,9 @@ module.exports = { "node_modules" ], env: { - "NODE_ENV": "production" + "NODE_ENV": "production", + "PORT": 80, + "DATABASE_URL": "mongodb://localhost:27017/labplus" } }] } \ No newline at end of file