recipes/alpha_omega/deploy.rb in alpha_omega-0.0.33 vs recipes/alpha_omega/deploy.rb in alpha_omega-0.0.34
- old
+ new
@@ -506,9 +506,23 @@
run run_script.gsub(/[\n\r]+[ \t]+/, " ")
end
end
+ namespace :node do
+ task :bundle do
+ run_script = <<-SCRIPT
+ set -e; cd #{release_path};
+ SCRIPT
+
+ run_script += <<-SCRIPT
+ npm install;
+ SCRIPT
+
+ run run_script.gsub(/[\n\r]+[ \t]+/, " ")
+ end
+ end
+
on :exit do
put full_log, "#{deploy_to}/log/#{application}_last_deploy_#{release_name}_#{branch}.log-#{Time.now.strftime('%Y%m%d-%H%M')}"
end
end # Capistrano::Configuration