From 433a1ec21468f8f867332142c173bd1922c595f1 Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 27 Dec 2021 14:19:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=9A=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=BA=91=E6=B5=8B=E6=9C=8D=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E4=B8=BAstable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app.ts | 2 +- game-server/config/servers.ts | 33 +++++++++++++-------------------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/game-server/app.ts b/game-server/app.ts index 46b30dd2f..929c09e87 100644 --- a/game-server/app.ts +++ b/game-server/app.ts @@ -46,7 +46,7 @@ filePath.CONFIG_DIR = '/config'; const adminfilePath = _pinus.DEFAULT_ADMIN_PATH; adminfilePath.ADMIN_FILENAME = 'adminUser'; adminfilePath.ADMIN_USER = 'config/adminUser'; -const ALL_ENVS = 'production|development|alpha|dev|isbn|monitor|distribute|sq1'; +const ALL_ENVS = 'stable|development|alpha|dev|isbn|monitor|distribute|sq1'; /** * 替换全局Promise * 自动解析sourcemap diff --git a/game-server/config/servers.ts b/game-server/config/servers.ts index 9264e8cbe..df3e5e69b 100644 --- a/game-server/config/servers.ts +++ b/game-server/config/servers.ts @@ -52,44 +52,37 @@ module.exports = { }, 'stable': { 'connector': [ - { 'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true }, - { 'id': 'connector-server-2', 'port': 4051, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true }, - { 'id': 'connector-server-3', 'port': 4052, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true } + { 'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyz_web.trgame.cn', 'host': '172.26.145.155', 'clientPort': 3050, 'frontend': true }, + { 'id': 'connector-server-2', 'port': 4051, 'clientHost': 'zyz_web.trgame.cn', 'host': '172.26.145.155', 'clientPort': 3051, 'frontend': true }, + { 'id': 'connector-server-3', 'port': 4052, 'clientHost': 'zyz_web.trgame.cn', 'host': '172.26.145.155', 'clientPort': 3052, 'frontend': true } ], 'chat': [ - { 'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050 }, + { 'id': 'chat-server-1', 'host': '172.26.145.155', 'port': 6050 }, ], 'role': [ - { 'id': 'role-server-1', 'host': '127.0.0.1', 'port': 6053 } + { 'id': 'role-server-1', 'host': '172.26.145.155', 'port': 6053 } ], 'battle': [ - { 'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054 } + { 'id': 'battle-server-1', 'host': '172.26.145.155', 'port': 6054 } ], 'gate': [ - { 'id': 'gate-server-1', 'host': '127.0.0.1', 'clientHost': 'zyz_web.trgame.cn', 'clientPort': 3014, 'frontend': true }, - { - 'id': 'gate-server-2', - 'host': '127.0.0.1', - 'clientHost': 'zyz_web.trgame.cn', - 'clientPort': 3015, - 'frontend': true - } + { 'id': 'gate-server-1', 'host': '172.26.145.155', 'clientHost': 'zyz_web.trgame.cn', 'clientPort': 3014, 'frontend': true } ], 'gm': [ - { 'id': 'gm-server-1', 'host': '127.0.0.1', 'port': 6055 } + { 'id': 'gm-server-1', 'host': '172.26.145.155', 'port': 6055 } ], 'systimer': [ - { 'id': 'systimer-server-1', 'host': '127.0.0.1', 'port': 6056 } + { 'id': 'systimer-server-1', 'host': '172.26.145.155', 'port': 6056 } ], 'guild': [ - { 'id': 'guild-server-1', 'host': '127.0.0.1', 'port': 6057, "args": " --inspect=9239" }, - { 'id': 'guild-server-2', 'host': '127.0.0.1', 'port': 6058, "args": " --inspect=9240" } + { 'id': 'guild-server-1', 'host': '172.26.145.155', 'port': 6057, "args": " --inspect=9239" }, + { 'id': 'guild-server-2', 'host': '172.26.145.155', 'port': 6058, "args": " --inspect=9240" } ], 'activity': [ - { 'id': 'activity-server-1', 'host': '127.0.0.1', 'port': 6059, "args": " --inspect=9241" }, + { 'id': 'activity-server-1', 'host': '172.26.145.155', 'port': 6059, "args": " --inspect=9241" }, ], 'order': [ - { 'id': 'order-server-1', 'host': '127.0.0.1', 'port': 6060, "args": " --inspect=9242" }, + { 'id': 'order-server-1', 'host': '172.26.145.155', 'port': 6060, "args": " --inspect=9242" }, ] }, 'alpha': {