In Rails 5, when I start rails console with an ENV var i.e. another DATABASE_URL (like DATABASE_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.
In Rails 5, when I start
rails consolewith 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 stopthe 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.