update noserver and nobrowser and fix noserver

This commit is contained in:
Jonathan Rainville 2018-10-12 13:46:25 -04:00 committed by Pascal Precht
parent 75d9998c57
commit fe0b84349a
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 4 additions and 4 deletions

View File

@ -175,12 +175,12 @@ class Cmd {
serverHost: options.host,
client: options.client,
locale: options.locale,
runWebserver: options.noserver === null ? null : !options.noserver,
runWebserver: !options.noserver ? null : false,
useDashboard: !options.nodashboard,
logFile: options.logfile,
logLevel: options.loglevel,
webpackConfigName: options.pipeline || 'development',
openBrowser: options.nobrowser === null ? null : !options.nobrowser
openBrowser: !options.nobrowser ? null : false
});
});
}

View File

@ -106,8 +106,8 @@ Config.prototype._updateBlockchainCors = function(){
let webServerConfig = this.webServerConfig;
let corsParts = [];
if(webServerConfig && webServerConfig.enabled) {
if(webServerConfig.host) corsParts.push(utils.buildUrlFromConfig(webServerConfig));
if(webServerConfig && webServerConfig.host) {
corsParts.push(utils.buildUrlFromConfig(webServerConfig));
}
if(storageConfig && storageConfig.enabled) {
// if getUrl is specified in the config, that needs to be included in cors