Skip to content

Commit

Permalink
rolling capistrano restart
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 12, 2016
1 parent 1fcac80 commit a5b8396
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@
set :nginx_domains, "libraries.io staging.libraries.io"
set :nginx_read_timeout, 60
set :app_server_port, 5000

namespace :deploy do
task :restart do
run "(kill -s SIGUSR1 $(pgrep -f 'puma 3')) || restart librariesio"
end
after :publishing, :restart
end

0 comments on commit a5b8396

Please sign in to comment.