mirror of https://github.com/embarklabs/embark.git
Merge pull request #76 from hitchcott/develop
make `copyMinerJavascriptToTemp` step public
This commit is contained in:
commit
a9c6b2959a
|
@ -132,8 +132,7 @@ program.command('blockchain [env]').description('run blockchain').action(functio
|
||||||
Embark.blockchainConfig.loadConfigFile(embarkConfig.blockchainConfig)
|
Embark.blockchainConfig.loadConfigFile(embarkConfig.blockchainConfig)
|
||||||
Embark.contractsConfig.loadConfigFile(embarkConfig.contractsConfig)
|
Embark.contractsConfig.loadConfigFile(embarkConfig.contractsConfig)
|
||||||
|
|
||||||
//TODO: better with --exec, but need to fix console bug first
|
Embark.copyMinerJavascriptToTemp();
|
||||||
wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true});
|
|
||||||
|
|
||||||
Embark.startBlockchain(env, true);
|
Embark.startBlockchain(env, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,11 @@ Embark = {
|
||||||
chain.startChain(use_tmp);
|
chain.startChain(use_tmp);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
copyMinerJavascriptToTemp: function(){
|
||||||
|
//TODO: better with --exec, but need to fix console bug first
|
||||||
|
wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true});
|
||||||
|
},
|
||||||
|
|
||||||
getStartBlockchainCommand: function(env, use_tmp) {
|
getStartBlockchainCommand: function(env, use_tmp) {
|
||||||
var chain = new Blockchain(this.blockchainConfig.config(env));
|
var chain = new Blockchain(this.blockchainConfig.config(env));
|
||||||
return chain.getStartChainCommand(use_tmp);
|
return chain.getStartChainCommand(use_tmp);
|
||||||
|
|
Loading…
Reference in New Issue