Skip to content
Snippets Groups Projects
Commit 4af48473 authored by Maciej Szarliński's avatar Maciej Szarliński Committed by GitHub
Browse files

Merge pull request #26 from mszarlinski/local-config-repo

closes #22 Making switching easier between github and local repository
parents d984ab4e d64a46b3
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,10 @@ If everything goes well, you can access the following services at given location
* Customers, Vets and Visits Services - random port, check Eureka Dashboard
* Tracing Server (Zipkin) - http://localhost:9411
You can tell Config Server to use your local Git repository by using `local` Spring profile and setting
`GIT_REPO` environment variable, for example:
`-Dspring.profiles.active=local -DGIT_REPO=/projects/spring-petclinic-microservices-config`
## Understanding the Spring Petclinic application with a few diagrams
<a href="https://speakerdeck.com/michaelisvy/spring-petclinic-sample-application">See the presentation here</a>
......
......@@ -5,5 +5,11 @@ spring:
server:
git:
uri: https://github.com/spring-petclinic/spring-petclinic-microservices-config
# Uncomment for local configuration repository:
# uri: file:///${GIT_REPO}
---
spring:
profiles: local
cloud:
config:
server:
git:
uri: file:///${GIT_REPO}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment