lib/ors/commands/deploy.rb in ors-0.2.5 vs lib/ors/commands/deploy.rb in ors-0.2.6
- old
+ new
@@ -6,9 +6,15 @@
info "deploying #{name} #{environment}..."
[Update, Migrate, Restart].each {|command| run command }
eval ERB.new(deploy_hook).result(binding) if deploy_hook
+
+ if remote_deploy_hook
+ execute_in_parallel(app_servers) do |server|
+ execute_command server, prepare_environment, remote_deploy_hook
+ end
+ end
end
end
end