Explorar o código

Mini guide on how to configure Spring Cloud Config.

Chris Lim %!s(int64=9) %!d(string=hai) anos
pai
achega
c0d8bd4e97
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      README.md

+ 13 - 0
README.md

@@ -0,0 +1,13 @@
+NOTES:
+
+Default config should be for the current deployment environment (e.g. Staging or Production). The reason being, it should not require additional command line config to run the services. Developers should instead specify the additional command line config when executing the services.
+
+These are the options for the developers:
+1. git branch
+Spring Cloud Config is able to handle git branches. This config is ideal if you have config experimentation and don't want to impact other developers. Specify -Dspring.cloud.config.label=<branch_name> when running the service.
+
+2. Spring profile
+To load a spring profile: -Dspring.cloud.config.profile=<profile_name>
+
+There should also be a corresponding file in the git repository with the format <service_application_name>-<profile_name>.yml
+