fix config
This commit is contained in:
parent
cc7dfbcc60
commit
a55ff613bf
|
@ -54,11 +54,11 @@ Config.prototype.loadConfigFiles = function(options) {
|
|||
|
||||
this.embarkConfig = fs.readJSONSync(options.embarkConfig);
|
||||
this.embarkConfig.plugins = this.embarkConfig.plugins || {};
|
||||
this.loadEmbarkConfigFile();
|
||||
|
||||
this.plugins = new Plugins({plugins: this.embarkConfig.plugins, logger: this.logger, interceptLogs: interceptLogs, events: this.events, config: this, context: this.context, env: this.env});
|
||||
this.plugins.loadPlugins();
|
||||
|
||||
this.loadEmbarkConfigFile();
|
||||
this.loadBlockchainConfigFile();
|
||||
this.loadStorageConfigFile();
|
||||
this.loadCommunicationConfigFile();
|
||||
|
@ -338,7 +338,7 @@ Config.prototype.loadEmbarkConfigFile = function() {
|
|||
}
|
||||
};
|
||||
|
||||
this.embarkConfig = this._mergeConfig(this.embarkConfig, configObject, true);
|
||||
this.embarkConfig = utils.recursiveMerge(configObject, this.embarkConfig);
|
||||
|
||||
const contracts = this.embarkConfig.contracts;
|
||||
const newContractsFiles = this.loadFiles(contracts);
|
||||
|
|
Loading…
Reference in New Issue