diff --git a/lib/core/config.js b/lib/core/config.js index f5bfde929..18ad623d0 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -148,6 +148,7 @@ Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env, ena let config; if (fs.existsSync(configFilePath + '.js')) { + delete require.cache[fs.dappPath(configFilePath + '.js')]; config = require(fs.dappPath(configFilePath + '.js')); } else { config = fs.readJSONSync(configFilePath + '.json'); diff --git a/lib/modules/specialconfigs/index.js b/lib/modules/specialconfigs/index.js index 1486bee11..93e528305 100644 --- a/lib/modules/specialconfigs/index.js +++ b/lib/modules/specialconfigs/index.js @@ -84,7 +84,7 @@ class SpecialConfigs { this.embark.registerActionForEvent("deploy:contract:deployed", (params, cb) => { let contract = params.contract; - if (!contract.onDeploy) { + if (!contract.onDeploy || contract.deploy === false) { return cb(); } if (!contract.silent) {