-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yabeda.configure! is not called when starting server via bundle exec puma #15
Comments
You are using yabeda-puma-plugin, right? The problem here is that when you use start Puma directly it requires Yabeda very early in its configuration, before rails. And thus following line doesn't get executed as Line 9 in 7b578d8
You can read more about differences between various startup methods here: https://blog.sqreen.com/fixing-a-critical-issue-a-journey-into-ruby-web-server-startup-sequences-part-two/ As a workaround you can require # config/puma.rb
+require 'rails'
+
activate_control_app
plugin :yabeda
plugin :yabeda_prometheus I don't know how to fix it at |
@shouichi or upgrade |
Updating |
Hi,
README claims that
Yabeda.configure!
is automatically called when it comes to rails but when the server is booted viabundle exec puma
,Yabeda.configure!
is not called and leads toNoSuchMethod
error (e.g.,undefined method
sidekiq_jobs_enqueued_total' for Yabeda:Module). Manually calling
Yabeda.configure!in
config/initializers/yabeda.rb` fixed the problem.Thanks.
The text was updated successfully, but these errors were encountered: