I have a staging machine with a special "staging" environment. I always forget to run rake tasks on that machine like:
rake jobs:work RAILS_ENV=staging
So instead I end up doing:
rake jobs:work
And then I'm mystified why nothing has changed in my database. Doh! It's because I didn't remember to supply RAILS_ENV=staging.
But I will never, ever need to run anything as the development environment on that server. How can I make rake tasks run in the "staging" environment by default?