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