From eba3457c88ef8b4e0fb1d8dde976c6fa4bb39676 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Mon, 29 Jan 2018 11:57:55 -0600 Subject: [PATCH] Deploy script --- config/deploy.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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