mirror of https://github.com/embarklabs/embark.git
Merge pull request #778 from embark-framework/fix_deploy
Fix issue with changes in config file not causing a proper reload
This commit is contained in:
commit
bf8183cf76
|
@ -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');
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue