fix: pm2多实例初始化问题

This commit is contained in:
JXDN
2025-11-12 18:11:07 +08:00
parent 992c4f83f4
commit 3e2cfd9687
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ SERVER_IS_DEMO_ENV=false
# PM2
PM2_APP_NAME=buildingai
PM2_INSTANCES=2
PM2_INSTANCES=1
PM2_EXEC_MODE=cluster
PM2_MAX_MEMORY=1G
PM2_WATCH=false
+1 -1
View File
@@ -4,7 +4,7 @@ module.exports = {
name: "buildingai-api",
script: "dist/main.js",
cwd: "packages/api",
instances: "2",
instances: "1",
exec_mode: "cluster",
autorestart: true,
watch: false,