diff --git a/config/deploy.rb b/config/deploy.rb index effd10286..f844ae26f 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -42,15 +42,17 @@ namespace :deploy do task :npm_install do on roles(:app) do + with fetch(:git_environmental_variables) do + within repo_path do + execute *%w[ git submodule update --init --force --remote ] + end + end + within release_path do # string commands dont work, have to use special *%w syntax execute *%w[ npm install ] execute *%w[ grunt ] end - - within repo_path do - execute *%w[ git submodule update --init --force --remote ] - end end end