disable webserver if false

This commit is contained in:
Jonathan Rainville 2018-09-04 16:44:42 -04:00
parent 0f1f3a782a
commit e925200592

View File

@ -322,6 +322,10 @@ Config.prototype.loadWebServerConfigFile = function() {
let webServerConfig = this._mergeConfig(configFilePath, configObject, false);
if (configFilePath === false) {
this.webServerConfig = {enabled: false};
return;
}
if (this.webServerConfig) {
// cli falgs to `embark run` should override configFile and defaults (configObject)
this.webServerConfig = utils.recursiveMerge(webServerConfig, this.webServerConfig);