From 0ba92a4f299e83ee42ad5b8adb2b4101f58f93e1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 5 Apr 2019 18:21:08 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=81=A7=E3=83=9D=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=81=8C=E6=8C=87=E5=AE=9A=E3=81=95=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=80=81=E7=92=B0?= =?UTF-8?q?=E5=A2=83=E5=A4=89=E6=95=B0=E3=82=92=E5=8F=82=E7=85=A7=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/load.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/load.ts b/src/config/load.ts index 7a4323817..50ae47d9e 100644 --- a/src/config/load.ts +++ b/src/config/load.ts @@ -29,6 +29,8 @@ export default function load() { config.url = normalizeUrl(config.url); + config.port = config.port || parseInt(process.env.PORT, 10); + mixin.host = url.host; mixin.hostname = url.hostname; mixin.scheme = url.protocol.replace(/:$/, '');