enable cluster mode for main_api

This commit is contained in:
SrGooglo 2023-11-28 18:47:51 +00:00
parent 4ff0546b5b
commit 6aaa5b2cd4

View File

@ -3,8 +3,8 @@ module.exports = {
{ {
name: "main_api", name: "main_api",
script: "./dist/index.js", script: "./dist/index.js",
// instances: "max", instances: "max",
// exec_mode: "cluster", exec_mode: "cluster",
env: { env: {
"NODE_ENV": "production", "NODE_ENV": "production",
"MAIN_LISTEN_PORT": 5000, "MAIN_LISTEN_PORT": 5000,
@ -64,7 +64,7 @@ module.exports = {
{ {
name: "sync_api", name: "sync_api",
script: "./dist/index.js", script: "./dist/index.js",
env:{ env: {
"NODE_ENV": "production", "NODE_ENV": "production",
"HTTP_LISTEN_PORT": 5005, "HTTP_LISTEN_PORT": 5005,
}, },