When we used PaaS/cloud, we used environment variables. For the longest time we were using configuration files. Regarding configuration file vs environment variables. Only the configuration file is different. In the container, we mount the directory where the application and the configuration file is stored, as part of the container run. To run our application on a new server, we pull the Docker container, the application artifact, and the configuration file for that environment. Config's core feature is the easy handling of environment specific configuration. This used to be Git, but we are now using a SaaS we built called Config, at. The configuration file lives in a separate source control. In a Spring app, you'll likely be using a properties file. This is the only thing that is different across environments.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |