催化剂+模组_cgi
我最近开发了一个 catalyst 应用程序,我现在想部署它。 我的主机 (OVH) 允许通过 mod_cgi 使用 Perl 应用程序。 不幸的是,我习惯在 mod_perl 上运行我的催化剂应用程序。 我对 mod_cgi 没有任何经验,而且我似乎找不到 关于如何让我的催化剂应用程序在 mod_cgi 上运行的良好文档。
你们中的一些人有机会帮助我吗? 你们中有人曾经在 OVH 的服务上运行过 Catalyst 应用程序吗?
谢谢, LDX
I recently developed a catalyst application which I would now like to deploy.
My host (OVH) allows perl applications via mod_cgi.
Unfortunately, I'm used to running my catalyst apps on mod_perl.
I have no experience with mod_cgi whatsoever, and I can't seem to find
good documentation on how I should get my catalyst app running on mod_cgi.
Any chance that some of you guys could give me a hand?
Has anyone of you ever run a catalyst app on OVH's services?
Thanks,
ldx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
catalyst.pl
创建一个 CGI 程序。对于 Catalyst 5.8,不包括 POD 的
Foo-Bar/scripts/foo_bar_cgi.pl
代码如下所示:catalyst.pl
creates a CGI program.For Catalyst 5.8, the code of
Foo-Bar/scripts/foo_bar_cgi.pl
excluding POD looks like:Catalyst::Engine::CGI 是您必须查看基本模块。如果您的 Catalyst 代码与后端无关,您应该能够将其放入基本应用程序中,创建一个 CGI 文件来运行整个应用程序,然后一切都会正常工作。
不过,CGI 环境将比 fastcgi 甚至 mod_perl 慢得多。
Catalyst::Engine::CGI is the base module you have to look at. If your Catalyst code is backend-agnostic you should be able to just drop that in your base app, create a CGI file through which your whole application runs, and it will all work.
The CGI environment though is going to be very much slower than fastcgi or even mod_perl.