-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring doesn't reload when passing ENV vars in the command line #490
Comments
+1 |
I was just going to enter a new issue, but I believe this is probably the same issue I'm having: even when I export an environment variable, and run It seems as if Spring just doesn't notice new environment variables in parsing YAML files with ERB in them? |
+1 to this. Got this issue and wasted several hours until I read this topic |
+1, this fixed an issue I was having with loading changes to environment variables, |
I wasted several hours, until someone redirected me here. Still need to do |
I believe this is a duplicate of #305. |
Duplicate of #305 |
In Rails 5, when I start
rails console
with an ENV var i.e. another DATABASE_URL (likeDATABASE_URL=postgres://... rails c
) , this is not picked up by spring and therefore ignored.After typing
spring stop
the ENVs are picked up and the ENVs are taken into consideration.This is pretty dangerous when choosing another database or rails env. Before rails 5 this worked as expected.
The text was updated successfully, but these errors were encountered: