我在Windows Server上的vm (vmware)中运行Ubuntu 12.04服务器。我在虚拟机上运行Rhodecode。我可以通过主机的IPAddress和端口RhodeCode (102.168.226.128:5000)访问RHodecode fine,但不能从网络上的另一台计算机访问它。为了解决这个问题,我尝试使用apache代理作为子目录(一位同事建议这样做),但遇到了问题。我将以下代码添加到production.ini中
filter-with = proxy-prefix (in [app.main])和
[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /<rhodecode> (at the end of the file)当我尝试构建数据库(sudo paster setup-rhodecode production.ini)时,我得到了以下错误:'main‘部分不是应用程序(可能是一个过滤器)。您应该添加#section_name,其中section_name是配置应用程序的部分
我在这里做错了什么?
发布于 2013-08-28 02:49:29
也许你没有做错什么,但是在你的production.ini中试试这个
[filter-app:main]
# instead of filter:proxy-prefix
use = egg:PasteDeploy#prefix
prefix = /scm
next = rh
[app:rh]
# instead of app:main
use = egg:rhodecode然后使用以下命令生成设置
paster setup-rhodecode production.ini#rh我遇到了与问题中描述的相同的问题,并且我偶然发现了a post from Ian Bicking (我针对Rhodecode配置进行了调整):
您必须使用setup-app引用app:*部分。因此,如果你有类似这样的东西:
filter-app:main use = something next = myapp app:myapp blah
然后您必须执行粘贴设置-应用程序deploy.ini#myapp
https://stackoverflow.com/questions/15932870
复制相似问题