forked from FoundKeyGang/FoundKey
設定でポートが指定されていない場合、環境変数を参照するように
This commit is contained in:
parent
7dc5009ec7
commit
0ba92a4f29
1 changed files with 2 additions and 0 deletions
|
@ -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(/:$/, '');
|
||||
|
|
Loading…
Reference in a new issue