I have been developing an application locally with an application environment setting of development. I think this is being set in the .htaccess
file.
Then, I have been deploying new versions to the production server.
I don't want to have to manually change the application environment, by hand, every time I deploy a new version.
How should I do this, so I can set the application environment variable automatically (maybe based on the location that it's being hosted? i.e. myapp.com
vs. myapp.local
)?