如何为 Catalyst fastcgi 进程指定 Perl 包含路径?
我已经使用 local::lib 在 ~/perl5/lib/perl5 中安装了 Catalyst 的所有依赖项
我想使用 mod_fcgid 在 Apache2 下运行我的应用程序,但 fastcgi perl 脚本无法在我的自定义路径中找到模块。如何指定(apache 配置?)我的自定义 lib 目录包含在 INC 目录中,而不显式将其侵入 myapp_fastcgi.pl?我希望能够在不同目录中安装了 perl 包含的服务器之间移动我的应用程序。
谢谢, 抢
i have installed all my dependencies for Catalyst in ~/perl5/lib/perl5 using local::lib
I want to run my app under Apache2 using mod_fcgid, but the fastcgi perl script cannot find the modules in my custom path. How can I specify that (apache config?) my custom lib dir is to be included in the INC directory without explicitly hacking it into myapp_fastcgi.pl? I want to be able to move my app between servers that have the perl includes installed in different directories.
Thanks,
Rob
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
DefaultInitEnv
设置环境变量。你可能想要这样的东西,但是通过你的常规包含,你也可以做一些事情,比如设置你的应用程序配置,
You can set the environment variables with
DefaultInitEnv
. You probably want something like this, but with your regular includes too,You can also do things like setting your app config like that too,