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
Once you add that line of configuration, you start getting this error when you try to build the Docker image:
> [10/10] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile:
3.508 bin/rails aborted!
3.509 ArgumentError: Expected password: to be a String, got NilClass (ArgumentError)
3.509
3.509 raise ArgumentError, "Expected password: to be a String, got #{password.class}" unless password.is_a?(String)
3.509 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3.509 /app/app/controllers/admin/admin_controller.rb:3:in `<class:AdminController>'
3.509 /app/app/controllers/admin/admin_controller.rb:1:in `<main>'
3.509 /app/config/environment.rb:5:in `<main>'
3.510 Tasks: TOP => environment
Is that configuration of mission_control causing an eager loading of controller file or something?
Or it's causing the controller file to be loaded before credentials are fully loaded?
Any solution?
The text was updated successfully, but these errors were encountered:
@smitssjors Thanks for the help! I already moved to Devise also for admins... so I have solved in some way.
I was just curious about why that error for credentials is raised only when I set that controller as the base controller for mission control. When I normally use that controller, without mission control, the docker image compiled normally without errors.
Start with an application that is working fine and a docker image that is building successfully.
The application already has a
Admin::AdminController
that looks like this:Then add this gem and add this line to an initializer:
Or, alternatively, add this line to
config/application.rb
:Once you add that line of configuration, you start getting this error when you try to build the Docker image:
Is that configuration of mission_control causing an eager loading of controller file or something?
Or it's causing the controller file to be loaded before credentials are fully loaded?
Any solution?
The text was updated successfully, but these errors were encountered: