简体   繁体   English

如何在dotcloud上使用psgi部署bugzilla?

[英]How to deploy bugzilla with psgi on dotcloud?

I want to deploy bugzilla on dotcloud, but the perl environment is psgi. 我想在dotcloud上部署bugzilla,但是perl环境是psgi。

The doc said I must use "modules to add PSGI hooks to legacy CGI or FastCGI applications". 文档说,我必须使用“将PSGI挂钩添加到旧版CGI或FastCGI应用程序的模块”。

I found CGI::Emulate::PSGI module but could not figure out how to do it. 我找到了CGI :: Emulate :: PSGI模块,但不知道该怎么做。

I am a Python programmer and have no experience in Perl. 我是Python程序员,没有Perl经验。

I did not try it but This sounds like what you want. 我没有尝试过,但这听起来像您想要的。 Its bugzila deployed to a cloud stackato. 其bugzila部署到云stackato。 You can join Stackato then deploy the bugzilla sample. 您可以加入Stackato,然后部署bugzilla示例。 https://github.com/Stackato-Apps/bugzilla https://github.com/Stackato-Apps/bugzilla

I had partial success with bugzilla-4.0.2 on a local openSUSE. 我在本地openSUSE上使用bugzilla-4.0.2取得了部分成功。 I don't think Bugzilla will be suitable for cloud deployment in the short term because of its large amount of manual setup necessary. 我认为Bugzilla在短期内不适合云部署,因为它需要大量的手动设置。 Follow the instructions referenced from docs/en/html/index.html , then run 请遵循docs/en/html/index.html引用的说明,然后运行

plackup -MPlack::App::CGIBin -e'Plack::App::CGIBin->new(root => ".")->to_app'

and visit http://localhost:5000/index.cgi . 并访问http://localhost:5000/index.cgi The static files are missing, eg stylesheets. 缺少静态文件,例如样式表。 Something like along the lines of 类似的东西

plackup -MPlack::Builder -MPlack::App::Directory -MPlack::App::CGIBin -e 'builder {
    mount "/" => Plack::App::CGIBin->new(root => ".")->to_app;
    mount "/" => Plack::App::Directory->new({ root => "." })->to_app;
}'

is necessary, but mounting to the same path actually does not work in Plack 0.9985, or I'm doing it wrong. 是必需的,但是在Plack 0.9985中安装到同一路径实际上不起作用,或者我做错了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM