When building a web application, there’s a good chance you will need to deploy it to multiple environments. For example, besides the production environment, you might have a QA environment for the quality assurance process. The database you connect to in a production environment will have a different host and credential than the one in a QA environment. For this reason, you want your application to read the necessary configuration at runtime.
- 1.
Environment variables
- 2.
Files
- 3.
Centralized configuration server