Skip to content

Commit

Permalink
Merge pull request #4127 from consul/puma_start_after_upgrading_ruby
Browse files Browse the repository at this point in the history
Make sure Puma has restarted properly
  • Loading branch information
javierm committed Sep 22, 2020
2 parents 0e496f9 + 40b3c9f commit 6c0fc33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def deploysecret(key)
set :whenever_roles, -> { :app }

namespace :deploy do
Rake::Task["delayed_job:default"].clear_actions
Rake::Task["puma:smart_restart"].clear_actions

after :updating, "rvm1:install:rvm"
after :updating, "rvm1:install:ruby"
after :updating, "install_bundler_gem"
Expand All @@ -54,8 +57,9 @@ def deploysecret(key)
after :publishing, "setup_puma"

after :published, "deploy:restart"
before "deploy:restart", "puma:smart_restart"
before "deploy:restart", "puma:restart"
before "deploy:restart", "delayed_job:restart"
before "deploy:restart", "puma:start"

after :finished, "refresh_sitemap"

Expand Down

0 comments on commit 6c0fc33

Please sign in to comment.