I am trying to debug a problem with secrets.yml
loading environment variables, by setting some environment variables in development and running rails c
to inspect things. When I load Rails.applications.secrets
this way, it is not picking up any of the environment variables I have set (namely, SECRET_KEY_BASE
)
If I run the application with the same environment variables set, it picks them up fine (I'm using RubyMine to run the application, but running rails c
from the terminal)
In my rails console, I can see the environment variable I've set using ENV['SECRET_KEY_BASE']
, but it doesn't show up in Rails.application.secrets
. Why?