Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. # Location: RAILS_ROOT/config/deploy.rb
  2.  
  3. # We noticed that the default asset precompilation happens after the current/ symlink is created. We
  4. # changed asset precompilation to happen before the current/ symlink is moved so that we don't have a period
  5. # where stylesheets, etc. for the running unicorn process are invalid.
  6. before 'deploy:create_symlink', 'deploy:assets:precompile'
  7.  
  8. namespace :deploy do
  9. desc <<-DESC
  10. Send a USR2 to the unicorn process to restart for zero downtime deploys.
  11. runit expects 2 to tell it to send the USR2 signal to the process.
  12. DESC
  13. task :restart, :roles => :app, :except => { :no_release => true } do
  14. run "sv 2 #{application}"
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement