Merge pull request #781 from embark-framework/bug_fix/no-webserver-if-false

Do not start webserver if set to false in embark.json
This commit is contained in:
Iuri Matias 2018-09-05 18:20:31 -04:00 committed by GitHub
commit 428820f2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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);