Closed amkisko closed 4 years ago
Run Rails and Sidekiq in production.
Eager loaded config classes.
Classes are not loaded, Sidekiq jobs that use configs throw exceptions, Rails console in Sidekiq environment does not have classes loaded.
This workaround helped:
config.eager_load_paths << Rails.root.join("config", "configs")
production
Ruby Version: 2.6.0
Framework Version (Rails, whatever): Rails 5.2.4.2
Anyway Config Version: 2.0.1
Thanks for the report. It seems I can reproduce this in tests (#59), so it's gonna be fixed soon)
Released a fix in 2.0.2. Check please.
Thanks for super quick fix! :tada:
What did you do?
Run Rails and Sidekiq in production.
What did you expect to happen?
Eager loaded config classes.
What actually happened?
Classes are not loaded, Sidekiq jobs that use configs throw exceptions, Rails console in Sidekiq environment does not have classes loaded.
Additional context
This workaround helped:
Environment
production
Ruby Version: 2.6.0
Framework Version (Rails, whatever): Rails 5.2.4.2
Anyway Config Version: 2.0.1