Today I Learned

hashrocket A Hashrocket project

Disable Spring in Rails with `DISABLE_SPRING`

This is fairly self explanatory. If you don't want spring running, because maybe you forget it's on and then you're confused when you're making changes to configuration and you don't see those changes manifest, then you can disable spring with:

DISABLE_SPRING=true

But be careful about where you put this. If you are using dotenv and you place it in your .env file it will not take effect. dotenv sets its environment after spring has started.

This is something that you should put in bashrc or zshrc.

export DISABLE_SPRING=true
See More #rails TILs
Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.