lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.2.11 vs lib/capistrano/node-deploy.rb in capistrano-node-deploy-1.2.12
- old
+ new
@@ -66,9 +66,10 @@
namespace :node do
desc "Check required packages and install if packages are not installed"
task :install_packages do
+ run "cp -r #{previous_release}/node_modules #{release_path}" if previous_release
run "cd #{release_path} && npm install --loglevel warn"
end
task :check_upstart_config do
create_upstart_config if remote_file_differs?(upstart_file_path, upstart_file_contents)