Skip to content
Snippets Groups Projects
Unverified Commit 01687c7c authored by Antoine Rey's avatar Antoine Rey
Browse files

Use the existing native profile

parent 275ec303
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,9 @@ the URL for an event stream to monitor, for example the `api-gateway` service ru
or running into docker: `http://api-gateway:8080/actuator/hystrix.stream`
You can tell Config Server to use your local Git repository by using `local` Spring profile and setting
You can tell Config Server to use your local Git repository by using `native` Spring profile and setting
`GIT_REPO` environment variable, for example:
`-Dspring.profiles.active=local -DGIT_REPO=/projects/spring-petclinic-microservices-config`
`-Dspring.profiles.active=native -DGIT_REPO=/projects/spring-petclinic-microservices-config`
## Starting services locally with docker-compose
In order to start entire infrastructure using Docker, you have to build images by executing `./mvnw clean install -PbuildDocker`
......
......@@ -5,11 +5,7 @@ spring:
server:
git:
uri: https://github.com/spring-petclinic/spring-petclinic-microservices-config
---
spring:
profiles: local
cloud:
config:
server:
git:
basedir: file:///${GIT_REPO}
# Use the File System Backend to avoid git pulling. Enable "native" profile in the Config Server.
native:
searchLocations: file:///${GIT_REPO}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment