Environment variables cached in Rails config?
The Spring gem is preloading apps by default in the development environment in Rails 4.
To reload your app, simply kill the spring processes for the current project:
spring stop
Spring doesn't seem to be able to refresh on environment changes, but it does monitor files. If you are using an .env
file, with dotenv for example, you can add it to config/spring.rb
:
Spring.watch '.env'