Practical DevOps
上QQ阅读APP看书,第一时间看更新

Factor 3 – config

Store config in the environment. Twelve Factors notes that configuration isn't part of the application; it is something external to the application. Twelve Factors prefers environment variables for application configuration. This is a good pattern but in my opinion using text-based configurations isn't really all that hard either and is useful in many cases. If you work with the OpenShift Container Platform, you will note that both file-based and environment-based configurations are essentially handled the same way.