Search code examples
mercurialspring-cloud-config

Spring Cloud Config Server: Mercurial?


As far as I understood it is not possible to setup Spring Cloud Config server with Mercurial. Maybe somebody encountered a similar request and knows of a workaround or a solution?

Thanks!


Solution

  • Turns out the solution is pretty simple. In your application.properties of the Spring Cloud Config Server application define:

    # tells spring to run without git
    spring.profiles.active=native
    # where the .properties or .yml files will be located
    spring.cloud.config.server.native.search-locations=file:///{user.home}/config-repo
    

    Source: https://cloud.spring.io/spring-cloud-config/spring-cloud-config.html -> File system backend.