1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-08 06:55:28 +02:00

apiHost now command line parameter to ember

This commit is contained in:
Harvey Kandola 2016-06-16 10:15:10 -07:00
parent 12db5fe0ae
commit f988123a64

View file

@ -35,15 +35,6 @@ module.exports = function(environment) {
}
};
process.argv.forEach(function(element) {
if (element !== undefined) {
if (element.startsWith("intercom=")) {
element = element.replace("intercom=", "");
ENV.APP.intercomKey = element;
}
}
});
if (environment === 'development') {
ENV.APP.LOG_TRANSITIONS = true;
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
@ -52,7 +43,6 @@ module.exports = function(environment) {
};
ENV.apiHost = "https://localhost:5001";
// ENV.apiHost = "https://demo1.dev:5001";
}
if (environment === 'test') {
@ -83,6 +73,19 @@ module.exports = function(environment) {
ENV.apiHost = "";
}
process.argv.forEach(function(element) {
if (element !== undefined) {
if (element.startsWith("intercom=")) {
element = element.replace("intercom=", "");
ENV.APP.intercomKey = element;
}
if (element.startsWith("apiHost=")) {
element = element.replace("apiHost=", "");
ENV.apiHost = element;
}
}
});
ENV.apiNamespace = "api";
ENV.contentSecurityPolicy = null;