lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.2.7 vs lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.2.8

- old
+ new

@@ -67,10 +67,10 @@ namespace :node do desc "Check required packages and install if packages are not installed" task :install_packages do run "mkdir -p #{shared_path}/node_modules" run "cp #{release_path}/package.json #{shared_path}" - run "cp #{release_path}/npm-shrinkwrap.json #{shared_path}" + run "cp #{release_path}/npm-shrinkwrap.json #{shared_path}" if remote_file_exists?("#{release_path}/npm-shrinkwrap.json") run "cd #{shared_path} && npm install #{(node_env != 'production') ? '--dev' : ''} --loglevel warn" run "ln -s #{shared_path}/node_modules #{release_path}/node_modules" end task :check_upstart_config do