Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/18.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
Scala 在Play framework 2.7中配置服务器_Scala_Playframework_Configserver - Fatal编程技术网

Scala 在Play framework 2.7中配置服务器

Scala 在Play framework 2.7中配置服务器,scala,playframework,configserver,Scala,Playframework,Configserver,我正在使用play framework 2.7实现一个web套接字服务器应用程序 我想实现一个远程配置,其中所有应用程序 配置应该驻留在github中 当我搜索文档来实现它时,我发现下面的url https://github.com/play-rconf 但从github访问配置未列出。 是否有更好的方法或文档从github访问配置服务器(如在春季)?您可以通过指定配置文件的URL来尝试: remote-configuration { ## Provider - HTTP # ~~~

我正在使用play framework 2.7实现一个web套接字服务器应用程序 我想实现一个远程配置,其中所有应用程序 配置应该驻留在github中

当我搜索文档来实现它时,我发现下面的url

https://github.com/play-rconf
但从github访问配置未列出。 是否有更好的方法或文档从github访问配置服务器(如在春季)?

您可以通过指定配置文件的URL来尝试:

remote-configuration {

  ## Provider - HTTP
  # ~~~~~
  # Retrieves configuration from a simple HTTP server
  http {

    # URL where is located the configuration file to fetch. You can
    # use basic authentication
    url = "https://raw.githubusercontent.com/<user>/<repo>/<branch>/<path-to-file>"
    url = ${?REMOTECONF_HTTP_URL}
  }
}
远程配置{
##提供者-HTTP
# ~~~~~
#从简单HTTP服务器检索配置
http{
#URL位于要获取的配置文件的位置。您可以
#使用基本身份验证
url=”https://raw.githubusercontent.com////"
url=${?REMOTECONF_HTTP_url}
}
}
您也可以使用基本身份验证。
查找有关GitHub链接的更多信息