File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,7 @@ program.command('blockchain [env]').description('run blockchain').action(functio
132132 Embark . blockchainConfig . loadConfigFile ( embarkConfig . blockchainConfig )
133133 Embark . contractsConfig . loadConfigFile ( embarkConfig . contractsConfig )
134134
135- //TODO: better with --exec, but need to fix console bug first
136- wrench . copyDirSyncRecursive ( __dirname + "/../js" , "/tmp/js" , { forceDelete : true } ) ;
135+ Embark . copyMinerJavascriptToTemp ( ) ;
137136
138137 Embark . startBlockchain ( env , true ) ;
139138 }
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ Embark = {
3535 chain . startChain ( use_tmp ) ;
3636 } ,
3737
38+ copyMinerJavascriptToTemp : function ( ) {
39+ //TODO: better with --exec, but need to fix console bug first
40+ wrench . copyDirSyncRecursive ( __dirname + "/../js" , "/tmp/js" , { forceDelete : true } ) ;
41+ } ,
42+
3843 getStartBlockchainCommand : function ( env , use_tmp ) {
3944 var chain = new Blockchain ( this . blockchainConfig . config ( env ) ) ;
4045 return chain . getStartChainCommand ( use_tmp ) ;
You can’t perform that action at this time.
0 commit comments