mirror of https://github.com/embarklabs/embark.git
update noserver and nobrowser and fix noserver
This commit is contained in:
parent
75d9998c57
commit
fe0b84349a
|
@ -175,12 +175,12 @@ class Cmd {
|
||||||
serverHost: options.host,
|
serverHost: options.host,
|
||||||
client: options.client,
|
client: options.client,
|
||||||
locale: options.locale,
|
locale: options.locale,
|
||||||
runWebserver: options.noserver === null ? null : !options.noserver,
|
runWebserver: !options.noserver ? null : false,
|
||||||
useDashboard: !options.nodashboard,
|
useDashboard: !options.nodashboard,
|
||||||
logFile: options.logfile,
|
logFile: options.logfile,
|
||||||
logLevel: options.loglevel,
|
logLevel: options.loglevel,
|
||||||
webpackConfigName: options.pipeline || 'development',
|
webpackConfigName: options.pipeline || 'development',
|
||||||
openBrowser: options.nobrowser === null ? null : !options.nobrowser
|
openBrowser: !options.nobrowser ? null : false
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,8 +106,8 @@ Config.prototype._updateBlockchainCors = function(){
|
||||||
let webServerConfig = this.webServerConfig;
|
let webServerConfig = this.webServerConfig;
|
||||||
let corsParts = [];
|
let corsParts = [];
|
||||||
|
|
||||||
if(webServerConfig && webServerConfig.enabled) {
|
if(webServerConfig && webServerConfig.host) {
|
||||||
if(webServerConfig.host) corsParts.push(utils.buildUrlFromConfig(webServerConfig));
|
corsParts.push(utils.buildUrlFromConfig(webServerConfig));
|
||||||
}
|
}
|
||||||
if(storageConfig && storageConfig.enabled) {
|
if(storageConfig && storageConfig.enabled) {
|
||||||
// if getUrl is specified in the config, that needs to be included in cors
|
// if getUrl is specified in the config, that needs to be included in cors
|
||||||
|
|
Loading…
Reference in New Issue