Skip to content

Commit

Permalink
Add Passenger server to auto register list
Browse files Browse the repository at this point in the history
  • Loading branch information
mabrikan authored Mar 26, 2024
1 parent 3874b3c commit 61ce3b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/yabeda/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ def puma_server?
def unicorn_server?
::Rails.const_defined?("Unicorn::Launcher")
end

def passenger_server?
::Rails.const_defined?("PhusionPassenger")
end

initializer "yabeda-rails.metrics" do
::Yabeda::Rails.install! if rails_server? || puma_server? || unicorn_server?
::Yabeda::Rails.install! if rails_server? || puma_server? || unicorn_server? || passenger_server?
end
end
end
Expand Down

0 comments on commit 61ce3b2

Please sign in to comment.