Semi-editable Files (eg config files) and version control - best practices?

后端 未结 8 2248
深忆病人
深忆病人 2020-12-30 17:17

So, I killed the build today by checking in a config file. It knows where the server is (think SQL server or the like), and I\'ve been working against the server which runs

8条回答
  •  生来不讨喜
    2020-12-30 17:46

    One method I've used is to have two versions of the config file, and have the installer script pull the correct version.

    • settings.xml
    • settings.xml-Release

    Both files contain the same keys, but one contains 'dev' values and the other contains the values we expect to deploy and be edited in the field.

提交回复
热议问题