@@ -14,7 +14,7 @@ var run = function(cmd) {
1414 }
1515}
1616
17- var deploy = function ( embarkConfig ) {
17+ var deploy = function ( env , embarkConfig ) {
1818 contractFiles = grunt . file . expand ( embarkConfig . contracts ) ;
1919 destFile = embarkConfig . output
2020 Embark . init ( )
@@ -25,7 +25,7 @@ var deploy = function(embarkConfig) {
2525}
2626
2727program
28- . version ( '0.6.1 ' )
28+ . version ( '0.7.0 ' )
2929
3030program . command ( 'new [name]' ) . description ( 'New application' ) . action ( function ( name ) {
3131 if ( name === undefined ) {
@@ -49,7 +49,7 @@ program.command('deploy [env]').description('deploy contracts').action(function(
4949 run ( "grunt deploy_contracts:" + env ) ;
5050 }
5151 else {
52- deploy ( ) ;
52+ deploy ( env , embarkConfig ) ;
5353 }
5454} ) ;
5555
@@ -63,7 +63,7 @@ program.command('build [env]').description('build dapp').action(function(env_) {
6363 run ( 'grunt build:' + env ) ;
6464 }
6565 else if ( embarkConfig . type === "meteor" ) {
66- deploy ( ) ;
66+ deploy ( env , embarkConfig ) ;
6767 run ( "meteor-build-client ./build -p ''" ) ;
6868 }
6969} ) ;
@@ -79,7 +79,7 @@ program.command('ipfs [env]').description('build dapp and make it available in i
7979 run ( 'grunt ipfs:' + env )
8080 }
8181 else if ( embarkConfig . type === "meteor" ) {
82- deploy ( ) ;
82+ deploy ( env , embarkConfig ) ;
8383 run ( "meteor-build-client ./build -p ''" ) ;
8484 Embark . release . ipfs ( "build/" )
8585 }
@@ -97,7 +97,7 @@ program.command('run [env]').description('run dapp').action(function(env_) {
9797 }
9898 else {
9999 console . log ( "command not available in meteor or manual mode yet" ) ;
100- console . log ( "try instead embark run " ) ;
100+ console . log ( "try instead embark deploy; if using meteor then follow that with 'meteor' " ) ;
101101 }
102102} ) ;
103103
@@ -126,7 +126,7 @@ program.command('blockchain [env]').description('run blockchain').action(functio
126126 Embark . contractsConfig . loadConfigFile ( embarkConfig . contractsConfig )
127127
128128 //TODO: better with --exec, but need to fix console bug first
129- wrench . copyDirSyncRecursive ( __dirname + "/../js" , "/tmp" , { forceDelete : true } ) ;
129+ wrench . copyDirSyncRecursive ( __dirname + "/../js" , "/tmp/js " , { forceDelete : true } ) ;
130130
131131 Embark . startBlockchain ( env , true ) ;
132132 }
0 commit comments