Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring云配置服务器:Mercurial?_Mercurial_Spring Cloud Config - Fatal编程技术网

Spring云配置服务器:Mercurial?

Spring云配置服务器:Mercurial?,mercurial,spring-cloud-config,Mercurial,Spring Cloud Config,据我所知,使用Mercurial安装SpringCloudConfigServer是不可能的。 也许有人遇到了类似的请求,并且知道解决方法或解决方案 谢谢 结果证明解决方案非常简单。在Spring Cloud Config Server应用程序的应用程序中。属性定义: # tells spring to run without git spring.profiles.active=native # where the .properties or .yml files will be locat

据我所知,使用Mercurial安装SpringCloudConfigServer是不可能的。 也许有人遇到了类似的请求,并且知道解决方法或解决方案


谢谢

结果证明解决方案非常简单。在Spring Cloud Config Server应用程序的
应用程序中。属性定义:

# 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

来源:->文件系统后端

我知道春云和水星是什么,但我不明白你想做什么。项目配置肯定属于源代码管理系统。您可以从SCM构建、打包和部署。缺少什么?我想通过SpringCloud设置动态配置服务器。在我看到的示例中,这是通过从GIT获取属性或yml文件来实现的。Spring Cloud中的设置url模式是:
Spring.Cloud.config.server.git.uri…
我假设我不能提交并将我的.properties(或yml)文件推送到mercurial,让Spring Clould config server从那里获取它们。我使用Jenkins进行CI。一旦创建了包,它就被部署到云中。云永远不会回到SCM系统。@duffymo我也在使用Jenkins来部署我的微服务。我需要有一个配置服务器,可以由不同的微服务使用。我不想在我的服务中包含我的配置文件,我想单独跟踪那里正在更改的内容。除了我之外,还需要其他人来帮助您。