From 808ae2d8ff1fba8357cbcccf7bd7c18335c82e10 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 28 Nov 2023 18:47:51 +0000 Subject: [PATCH] enable cluster mode for main_api --- ecosystem.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 5c235f4f..4bce946c 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,8 +3,8 @@ module.exports = { { name: "main_api", script: "./dist/index.js", - // instances: "max", - // exec_mode: "cluster", + instances: "max", + exec_mode: "cluster", env: { "NODE_ENV": "production", "MAIN_LISTEN_PORT": 5000, @@ -64,7 +64,7 @@ module.exports = { { name: "sync_api", script: "./dist/index.js", - env:{ + env: { "NODE_ENV": "production", "HTTP_LISTEN_PORT": 5005, },