lib/ors/commands/deploy.rb in ors-0.2.7 vs lib/ors/commands/deploy.rb in ors-0.2.8
- old
+ new
@@ -3,18 +3,20 @@
class Deploy < Base
def execute
info "deploying #{name} #{environment}..."
- [Update, Migrate, Restart].each {|command| run command }
+ [Update, Migrate].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, "RAILS_ENV=#{environment} #{remote_deploy_hook}"
end
end
+
+ run Restart
+
+ eval ERB.new(deploy_hook).result(binding) if deploy_hook
end
end
end