Procházet zdrojové kódy

Mini guide on how to configure Spring Cloud Config.

Chris Lim před 9 roky
rodič
revize
c0d8bd4e97
1 změnil soubory, kde provedl 13 přidání a 0 odebrání
  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
+