config/environment.rb not requiring initializers nor files in load paths #695
Comments
@beauby It's by design. Boot process happens when What's your configuration for Sidekiq? Can you please share? Thanks |
@jodosha I run sidekiq via The downside of the first point is that one cannot put their sidekiq configuration in an initializer (except if they choose to manually require it from a wrapper that requires The downside of the second point is that if one stores their application-specific sidekiq workers in |
Folks what do you think it would be a good solution? |
I think we should generate a new file for that: # config/boot.rb
require_relative './environment'
Hanami.boot |
While setting up hanami + sidekiq, I came across two hurdles:
config/environment.rb
does not load initializers (which may or may not be the right thing to do, but since sidekiq does not boot the app, but simply requires that file, it forces one to require the sidekiq config directly fromconfig/environment
)config/environment.rb
does not load files in the load paths declared within apps.@jodosha Any thoughts on this?
The text was updated successfully, but these errors were encountered: