-
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
Environment variables changed by rails cannot be reloaded #653
Comments
@mildred Can I ask a question? Do you think this would cause this problem I am facing since upgrading Spring from 2.1.1. I have the following command:
Since upgrading Spring, the DATABASE_URL env variable is being ignored. Just wondering if I need to report a new issue or is this the same issue. |
I'm having a similar issue with
where the file
I'm not sure how this is possible. The ENV variables are set and managed by |
For me it was a case of two different spring processes running. One in the foreground in my terminal, which worked, and responded to commands also sent from the terminal, and the other was running hidden in RubyMine, and it had not been restarted when I was manually restarting the one in my Terminal. |
The following piece of code handle environment variable reloads in Spring
spring/lib/spring/application.rb
Lines 163 to 167 in 770b2b1
What it does is:
My problem is that I have a Rails application where there is an environment variable that triggers if the app is in master mode or slave mode. I use ENV! to manage environment variable, and if a variable is not set, ENV! sets a default value. The following sequence of events cause an issue:
I don't know the rationale behind this code, but in some cases it is completely wrong.
I believe this might be a reason behing the #420 issue
The text was updated successfully, but these errors were encountered: