I am learning ASP.Net MVC 2 based on PHP and some Rails background, and one of the only things that seem to me is how you manage configuration settings such as connection strings or endpoints for external services.
With the PHP framework used by the previous company, there was a standard format and convention for configuration files. My company was able to use this to make another configuration file loaded based on the environment variable (which was installed in the Apache configuration). This simplified and automated the change of any configuration parameter based on the environment. As far as I know, Rails has some version of the built-in function.
I am familiar with the app.config and web.config files in the .Net world, but is there a way to change these changes based on the environment, preferably automatically, and with different levels of detail? The whole configuration system seems very anemic compared to what I'm used to.
I could probably hack something together to achieve this, but I wanted to see what approach people take in practice, or if there are some standard tools that people use.
davidtbernal
source share