kopia lustrzana https://github.com/c9/core
Serve unpacked content over 3 ports
rodzic
aace9c2413
commit
2da803b9db
|
@ -1,3 +1,9 @@
|
||||||
|
/**
|
||||||
|
* unpacked_helper speeds up the unpacked version of Cloud9
|
||||||
|
* by using more parallel connections and avoiding
|
||||||
|
* subsubdomains on dogfooding (e.g., ide.dev-lennartcl.c9.io, where
|
||||||
|
* Chrome doesn't support any caching).
|
||||||
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
plugin.consumes = [
|
plugin.consumes = [
|
||||||
|
@ -18,20 +24,10 @@ function plugin(options, imports, register) {
|
||||||
assert(ideBaseUrl, "ideBaseUrl must be set");
|
assert(ideBaseUrl, "ideBaseUrl must be set");
|
||||||
|
|
||||||
var balancers = [
|
var balancers = [
|
||||||
baseUrl + "/uph",
|
baseUrl + "/_unp",
|
||||||
|
baseUrl + ":8081/_unp",
|
||||||
|
baseUrl + ":8082/_unp",
|
||||||
];
|
];
|
||||||
/* UNDONE: for now we put all static content on one domain
|
|
||||||
because of reports of CORS errors
|
|
||||||
if (!options.avoidSubdomains)
|
|
||||||
balancers.push(
|
|
||||||
ideBaseUrl
|
|
||||||
// We could include others but dogfooding URLs like
|
|
||||||
// vfs.newclient-lennartcl.c9.io don't have a cert, so
|
|
||||||
// let's not
|
|
||||||
// apiBaseUrl + "/uph",
|
|
||||||
// vfsBaseUrl + "/uph"
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
|
|
||||||
connectStatic.getRequireJsConfig().baseUrlLoadBalancers = balancers;
|
connectStatic.getRequireJsConfig().baseUrlLoadBalancers = balancers;
|
||||||
assert(connectStatic.getRequireJsConfig().baseUrlLoadBalancers);
|
assert(connectStatic.getRequireJsConfig().baseUrlLoadBalancers);
|
||||||
|
|
Ładowanie…
Reference in New Issue