You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We tested this by commenting out all mount's and application configuration (e.g. no references in config/application.rb, routes, and more) before setting the gem to require: false in the Gemfile.
This is a problem because our build environment does not have a database connection set up. E.g. when running bundle exec rails assets:precompile but does in our other environments (production, development etc). I haven't yet had time to track this down further.
Ideally, Mission Control does not invoke side effects in Active Record on load, instead only doing so when the route is visited or otherwise.
Very excited about this project by the way. If necessary, I could look to setting up a proof of concept to demo the problem.
The text was updated successfully, but these errors were encountered:
On version 0.3.1, we had to recently set mission control rails to require: false, and manually require the gem in non CI environments.
Something about the way this gem loads, will attempt to invoke
ActiveRecord::Base.connection
on load. My hypothesis is it's something to do with https://github.com/rails/mission_control-jobs/blob/main/lib/mission_control/jobs.rb#L6We tested this by commenting out all mount's and application configuration (e.g. no references in config/application.rb, routes, and more) before setting the gem to require: false in the Gemfile.
This is a problem because our build environment does not have a database connection set up. E.g. when running
bundle exec rails assets:precompile
but does in our other environments (production, development etc). I haven't yet had time to track this down further.Ideally, Mission Control does not invoke side effects in Active Record on load, instead only doing so when the route is visited or otherwise.
Very excited about this project by the way. If necessary, I could look to setting up a proof of concept to demo the problem.
The text was updated successfully, but these errors were encountered: