From fbbeec9c86817292eec21a5a7eba46a58c449a15 Mon Sep 17 00:00:00 2001 From: shmyga Date: Thu, 4 Jan 2018 20:42:31 +0300 Subject: [PATCH] [deploy] npm task fix --- config/npm.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/npm.rb b/config/npm.rb index 636d9e1..38d37a8 100644 --- a/config/npm.rb +++ b/config/npm.rb @@ -2,8 +2,8 @@ set :npm_path, -> { release_path } namespace :npm do task :prepare do - npm_role = fetch(:npm_role) - on roles(npm_role) do + npm_roles = fetch(:npm_roles) + on roles(npm_roles) do npm_target_path = fetch(:npm_target_path) npm_path = fetch(:npm_path) execute "mkdir -p #{npm_target_path}" @@ -11,8 +11,8 @@ namespace :npm do end end task :link do - npm_role = fetch(:npm_role) - on roles(npm_role) do + npm_roles = fetch(:npm_roles) + on roles(npm_roles) do npm_target_path = fetch(:npm_target_path) npm_path = fetch(:npm_path) execute "ln -s #{npm_target_path}/node_modules #{npm_path}/"