From 7f4d4d6e4978f2a04c0fceddb5dd200a2840b3df Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 22 Jul 2015 08:30:32 -0400 Subject: [PATCH] specify env and config when deploying --- bin/embark | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/embark b/bin/embark index 55a910b25..ba533a2a1 100644 --- a/bin/embark +++ b/bin/embark @@ -14,7 +14,7 @@ var run = function(cmd) { } } -var deploy = function(embarkConfig) { +var deploy = function(env, embarkConfig) { contractFiles = grunt.file.expand(embarkConfig.contracts); destFile = embarkConfig.output Embark.init() @@ -49,7 +49,7 @@ program.command('deploy [env]').description('deploy contracts').action(function( run("grunt deploy_contracts:" + env); } else { - deploy(); + deploy(env, embarkConfig); } }); @@ -63,7 +63,7 @@ program.command('build [env]').description('build dapp').action(function(env_) { run('grunt build:' + env); } else if (embarkConfig.type === "meteor") { - deploy(); + deploy(env, embarkConfig); run("meteor-build-client ./build -p ''"); } }); @@ -79,7 +79,7 @@ program.command('ipfs [env]').description('build dapp and make it available in i run('grunt ipfs:' + env) } else if (embarkConfig.type === "meteor") { - deploy(); + deploy(env, embarkConfig); run("meteor-build-client ./build -p ''"); Embark.release.ipfs("build/") } @@ -126,7 +126,7 @@ program.command('blockchain [env]').description('run blockchain').action(functio Embark.contractsConfig.loadConfigFile(embarkConfig.contractsConfig) //TODO: better with --exec, but need to fix console bug first - wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp", {forceDelete: true}); + wrench.copyDirSyncRecursive(__dirname + "/../js", "/tmp/js", {forceDelete: true}); Embark.startBlockchain(env, true); }