Deploy script
This commit is contained in:
@@ -42,15 +42,17 @@ namespace :deploy do
|
|||||||
|
|
||||||
task :npm_install do
|
task :npm_install do
|
||||||
on roles(:app) 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
|
within release_path do
|
||||||
# string commands dont work, have to use special *%w syntax
|
# string commands dont work, have to use special *%w syntax
|
||||||
execute *%w[ npm install ]
|
execute *%w[ npm install ]
|
||||||
execute *%w[ grunt ]
|
execute *%w[ grunt ]
|
||||||
end
|
end
|
||||||
|
|
||||||
within repo_path do
|
|
||||||
execute *%w[ git submodule update --init --force --remote ]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user