question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to point spring-cloud-config server to a git folder inside a git repo

See original GitHub issue

I have a git repo and I created a config folder inside it. Now in my spring-cloud-config server application I am trying to point it to config folder.

The configuration is as below:

spring.cloud.config.server.git.uri: https://github.com/test/tes-service/
spring.cloud.config.server.git.username=test
spring.cloud.config.server.git.password=test
spring.cloud.config.server.git.search-paths=config

But this configuration does not seems to be working. Is this the correct way to do it?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
akkannabirancommented, Apr 23, 2016

As per our design, we are maintaining the configurations like below. config/application.yml config/aat/application.yml config/uat/application.yml

searchPaths: config,config/aat

Is it possible to load the configuration for aat environment from config/application.yml and config/aat/application.yml?

6reactions
scorobogacicommented, Nov 26, 2018

It can be solved as following :

Suppose you have in your config repo properties for multimple services organized in folders: properties organized in folders

Then, your config file for config server looks like this :

server:
  port: 8888
spring:
  cloud:
    config:
      server:
        git:
          uri:[git repo]
          search-paths:
           - billing-service
           - shipping-service

This way you can organize all the properties in one central config repository and tell spring config server in which folders to look for properties

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to point spring-cloud-config server to a ... - Stack Overflow
Point to your git repo and set the subfolder in the searchPaths spring.cloud.config.
Read more >
2. Spring Cloud Config Server
The server is embeddable in a Spring Boot application, by using the @EnableConfigServer annotation. Consequently, the following application is a config server:
Read more >
Spring Cloud Config Server with Git Integration
Point the Git repo from Config Server. Create one file called bootstrap.properties in the src\main\resources directory of spring-config-sever ...
Read more >
Connect Spring Cloud Config Server to Local Git Repository
First, we will find the folder path. Right-click on git-localconfig-repo -> Properties -> copy the Location label address and paste it into the...
Read more >
How to Setup the Spring Cloud Config Server With Git - DZone
Configure Repository ; 1. spring.application.name=hello-config-server ; 2. server.port=8888 ; 3. spring.cloud.config.server.git.uri=file:///d:/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found