Merge branch 'multi-domain-part-deux' of github.com:c9/newclient into multi-domain-part-deux

pull/117/merge
Lennart Kats 2015-07-02 10:23:25 +02:00
commit bd76f5ab1a
2 zmienionych plików z 3 dodań i 2 usunięć

3
node_modules/c9/urls.js wygenerowano vendored
Wyświetl plik

@ -34,7 +34,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|| req.host
|| req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1")
|| req;
assert(!sourceHost.match(/\$DOMAIN/), "Please provide a valid request object");
if (typeof sourceHost !== "string")
throw new Error("Not a valid request object: " + req);
var sourceHostMatcher = sourceBaseUrlPattern
.replace(/^https?:\/\//, "")

Wyświetl plik

@ -63,7 +63,7 @@ function main(argv, config, onLoaded) {
.describe("dump", "dump config file as JSON")
.describe("domains", "Primary and any secondary top-level domains to use (e.g, c9.io,c9.dev)")
.describe("exclude", "Exclude specified service")
.default("domains", inContainer && process.env.C9_HOSTNAME)
.default("domains", inContainer && process.env.C9_HOSTNAME || process.env.C9_DOMAINS)
.boolean("help")
.describe("help", "Show command line options.");