Skip to content

Commit

Permalink
[#18818] add puma reload feature
Browse files Browse the repository at this point in the history
  • Loading branch information
makandra-stefan-langenmaier committed Aug 23, 2024
1 parent 6aedd3e commit b965c45
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/capistrano/opscomplete.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
load File.expand_path('opscomplete/ruby.rake', __dir__)
load File.expand_path('opscomplete/nodejs.rake', __dir__)
load File.expand_path('opscomplete/supervisor.rake', __dir__)
load File.expand_path('opscomplete/puma.rake', __dir__)
load File.expand_path('opscomplete/hooks.rb', __dir__)
13 changes: 13 additions & 0 deletions lib/capistrano/opscomplete/puma.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# vim: filetype=ruby
namespace :opscomplete do
namespace :puma do

desc 'Reload the systemd puma userunit'
task :reload do
on roles fetch(:puma_roles, :foo_roles) do # by default on the puma role if not on all systems
execute :systemctl_user_puma_reload
end
end

end
end

0 comments on commit b965c45

Please sign in to comment.