Skip to content

Commit

Permalink
--port is used for making default URL. Fix #114.
Browse files Browse the repository at this point in the history
When `--hub` is not provided when preparing a Batch,
the `--port` option is used to make the default Hub
URL for localhost.
  • Loading branch information
reid committed Nov 8, 2012
1 parent 4afa448 commit a7a7cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cli.js
Expand Up @@ -451,8 +451,8 @@ CLI.prototype.runBatch = function runBatch(options) {
}

if (!url) {
url = "http://localhost:9000";
externalUrl = "http://" + getLocalIP() + ":9000";
url = "http://localhost:" + port;
externalUrl = "http://" + getLocalIP() + ":" + port;
}

connectToURL(url);
Expand Down

0 comments on commit a7a7cb1

Please sign in to comment.