Spring needs to restart when certain important environment variables change (eg. DATABASE_URL). Without this, comamnds connect to a stale application instance that has been booted with incorrect config.
Configuration must be set in config/spring_client.rb:
Closes https://github.com/rails/spring/issues/420
Spring needs to restart when certain important environment variables change (eg. DATABASE_URL). Without this, comamnds connect to a stale application instance that has been booted with incorrect config.
Configuration must be set in
config/spring_client.rb
:So it can be used like this: