[deploy] npm task fix

This commit is contained in:
2018-01-04 20:42:31 +03:00
parent b2ba693dbf
commit fbbeec9c86

View File

@@ -2,8 +2,8 @@ set :npm_path, -> { release_path }
namespace :npm do namespace :npm do
task :prepare do task :prepare do
npm_role = fetch(:npm_role) npm_roles = fetch(:npm_roles)
on roles(npm_role) do on roles(npm_roles) do
npm_target_path = fetch(:npm_target_path) npm_target_path = fetch(:npm_target_path)
npm_path = fetch(:npm_path) npm_path = fetch(:npm_path)
execute "mkdir -p #{npm_target_path}" execute "mkdir -p #{npm_target_path}"
@@ -11,8 +11,8 @@ namespace :npm do
end end
end end
task :link do task :link do
npm_role = fetch(:npm_role) npm_roles = fetch(:npm_roles)
on roles(npm_role) do on roles(npm_roles) do
npm_target_path = fetch(:npm_target_path) npm_target_path = fetch(:npm_target_path)
npm_path = fetch(:npm_path) npm_path = fetch(:npm_path)
execute "ln -s #{npm_target_path}/node_modules #{npm_path}/" execute "ln -s #{npm_target_path}/node_modules #{npm_path}/"