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.

Support placeholders for searchPaths on remote repos

See original GitHub issue

To support a more flexible Git repo structure it would be good if the {placeholder} support was supported in the searchPaths option. Ideally we should be able to support having a single repo with config store under application (and profile) structure. Current implementation requires change to the searchPaths entry on the config server whenever a new application is added.

spring:
  cloud:
    config:
      server:
        git:
          uri: https://xxxx/config-repo.git
          searchPaths: {application}

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dsyercommented, Feb 16, 2016

Works for me. You need to quote the search paths value in YAML (“{” is not a valid literal). Maybe that’s the problem?

0reactions
frustrateddeveloperscommented, Apr 27, 2019

Works for me. You need to quote the search paths value in YAML (“{” is not a valid literal). Maybe that’s the problem?

I was also making same mistake, after quoting in doublesquotes it worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Cloud Config Server
Spring Cloud Config Server supports a git repository URL with placeholders for the {application} and {profile} (and {label} if you need it, but...
Read more >
Spring-cloud-config-server--environment Repository (Git backend)
Therefore, you can easily support the use of an "one repo" policy, for example: ... Placeholders in Git search paths--git the placeholder in...
Read more >
Spring cloud config searchPaths vs repo directory structure
I'm trying to run Spring Cloud Config server (centralized-configuration-service) with remote repository on Git ...
Read more >
Spring Cloud
Spring Cloud Config Server also supports a search path with placeholders for ... git: uri: https://github.com/spring-cloud-samples/config-repo searchPaths: ...
Read more >
Externalizing Application Configuration With Spring Cloud ...
Here is a list of some of the supported backend. Git URL; AWS S3 bucket. ... Now, Let's create some configuration files, in...
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