Skip to content

Commit

Permalink
docs: added comment re: #9305
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Feb 17, 2021
1 parent 34096b7 commit 65c57c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ async function completeConfigSetup(config) {
if (!/^http(?:s)?:\/\//.test(config.url)) {
config.url = `http://${config.url}`;
}

// If port is explicitly passed via install vars, use it. Otherwise, glean from url if set.
const urlObj = url.parse(config.url);
if (urlObj.port && (!install.values || !install.values.hasOwnProperty('port'))) {
config.port = urlObj.port;
Expand Down

0 comments on commit 65c57c7

Please sign in to comment.