How do you deal with configuration files in source control?

前端 未结 19 1999
情书的邮戳
情书的邮戳 2020-11-27 13:00

Let\'s say you have a typical web app and with a file configuration.whatever. Every developer working on the project will have one version for their dev boxes, there will be

19条回答
  •  时光取名叫无心
    2020-11-27 13:22

    I've used the template before, i.e. web.dev.config, web.prod.config, etc, but now prefer the 'override file' technique. The web.config file contains the majority of the settings, but an external file contains environment-specific values such as db connections. Good explanation on Paul Wilson's blog.

    I think this reduces the amount to duplication between the config files which can cause pain when adding new values / attributes.

提交回复
热议问题