mirror of https://github.com/embarklabs/embark.git
tolerate lack of blockchain config file
This commit is contained in:
parent
747237de76
commit
a76dbb69b9
|
@ -64,7 +64,10 @@ Config.prototype.reloadConfig = function() {
|
|||
};
|
||||
|
||||
Config.prototype.loadBlockchainConfigFile = function() {
|
||||
var defaultBlockchainConfig = fs.readJSONSync(this.configDir + "blockchain.json");
|
||||
var defaultBlockchainConfig = {};
|
||||
if (fs.existsSync(this.configDir + "blockchain.json")) {
|
||||
defaultBlockchainConfig = fs.readJSONSync(this.configDir + "blockchain.json");
|
||||
}
|
||||
this.blockchainConfig = defaultBlockchainConfig[this.env] || {};
|
||||
|
||||
if (this.blockchainConfig.enabled === undefined) {
|
||||
|
|
Loading…
Reference in New Issue