Run Spring commands with different environments
mainSpring automatically detects environment changes. If you run a command with a different environment (e.g., using RAILS_ENV), Spring will boot that specific environment.
For rake tasks, they run in the development environment by default, but you can change this using the RAILS_ENV environment variable.