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,
|
||||
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
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue