From b441e50d3bcc6ecb81dc74e3d0e69fe5e1f64126 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 28 Nov 2023 19:27:51 +0000 Subject: [PATCH] fix HTTP_LISTEN_PORT --- ecosystem.config.js | 2 +- packages/server/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 4bce946c..3aaef206 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -7,7 +7,7 @@ module.exports = { exec_mode: "cluster", env: { "NODE_ENV": "production", - "MAIN_LISTEN_PORT": 5000, + "HTTP_LISTEN_PORT": 5000, "LOG_REQUESTS": true, }, node_args: "-r dotenv/config", diff --git a/packages/server/src/index.js b/packages/server/src/index.js index 35e05577..8a2f28c7 100755 --- a/packages/server/src/index.js +++ b/packages/server/src/index.js @@ -14,7 +14,7 @@ import internalEvents from "./events" export default class API extends Server { static refName = "MAIN-API" - static listen_port = 3010 + static listen_port = process.env.HTTP_LISTEN_PORT || 3010 static requireWSAuth = true