mirror of
https://github.com/BidingCC/BuildingAI.git
synced 2026-09-01 15:48:39 +08:00
fix: pm2多实例初始化问题
This commit is contained in:
+1
-1
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user