Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Location: RAILS_ROOT/config/deploy.rb
- # We noticed that the default asset precompilation happens after the current/ symlink is created. We
- # changed asset precompilation to happen before the current/ symlink is moved so that we don't have a period
- # where stylesheets, etc. for the running unicorn process are invalid.
- before 'deploy:create_symlink', 'deploy:assets:precompile'
- namespace :deploy do
- desc <<-DESC
- Send a USR2 to the unicorn process to restart for zero downtime deploys.
- runit expects 2 to tell it to send the USR2 signal to the process.
- DESC
- task :restart, :roles => :app, :except => { :no_release => true } do
- run "sv 2 #{application}"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement