spring.cloud.config.server.git.basedir is ignored
See original GitHub issueSteps to reproduce:
- Create a Spring Cloud Config Server application with the configuration:
server:
port: 8888
spring:
cloud:
config:
server:
git:
basedir: "/some/other/directory/here"
uri: git@example.com:foo/base.git
repos:
type1: git@example.com:foo/type1.git
type2:
pattern: '*/type2*'
uri: git@example.com:foo/type2.git
- Run the application
Expected:
config-repo-*
directories are created under /some/other/directory/here
Actual:
config-repo-*
directories are created under /private/var/folders/<some other directories/config-repo-*
on Mac OS x
Per http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_version_control_backend_filesystem_use this should work. Unless I have the config wrong somehow
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Issue with git pull in spring cloud config server when using ...
I am defining a basedir property for my git configuration so that git creates the local copy at this location.(We have a use...
Read more >2. Spring Cloud Config Server
Spring Cloud Config Server provides an HTTP resource-based API for external configuration (name-value pairs or equivalent YAML content).
Read more >Enterprise Single Sign-On for All - CAS - Configuration Server
The Spring Cloud Configuration Server is able to handle git or svn based repositories that host CAS ... Base directory for local working...
Read more >spring-cloud-config: External configuration (server and client ...
The default strategy for locating property sources is to clone a git repository (at spring.cloud.config.server.git.uri ) and use it to initialize a mini ......
Read more >Reading properties from Spring Cloud Config Server - Quarkus
quarkus create app org.acme:spring-cloud-config-quickstart ... on the Spring Cloud Config Server (generally "master" when the server uses a Git backend).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@spencergibb I’m using
the latest versionversion 1.2.3.RELEASE. It wasn’t obvious from the docs that the property isn’t a global. What probably happened is that I set thebasedir
but didn’t try to request any configurations from base.git.Just to be clear,
basedir
has to be specified per repo? So in my example I would additionally need properties named:spring.cloud.config.server.git.repos.type1.basedir
andspring.cloud.config.server.git.repos.type2.basedir
? If so do you think it’s worth updating the documentation with this information? I can create a PRClosing this due to inactivity. Please re-open if there’s more to discuss.