Skip to content

Commit

Permalink
Always do a unicorn restart to avoid downtime during deploys.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarv-aws committed Jan 14, 2016
1 parent 8dca2e5 commit 95ea555
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Always restart Unicorn instead of a stop and start to prevent downtime during deploys.
- After creating RAID arrays update initramfs to prevent device mapping issues on reboot.

# v3431 2015-12-22
Expand Down
2 changes: 1 addition & 1 deletion deploy/attributes/rails_stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
normal[:opsworks][:rails_stack][:recipe] = "unicorn::rails"
normal[:opsworks][:rails_stack][:needs_reload] = true
normal[:opsworks][:rails_stack][:service] = 'unicorn'
normal[:opsworks][:rails_stack][:restart_command] = '../../shared/scripts/unicorn clean-restart'
normal[:opsworks][:rails_stack][:restart_command] = "../../shared/scripts/unicorn restart"
else
raise "Unknown stack: #{node[:opsworks][:rails_stack][:name].inspect}"
end
Expand Down

0 comments on commit 95ea555

Please sign in to comment.