[Catalyst] loading modules before the server forks
Andy Grundman
andy at hybridized.org
Thu Nov 8 19:39:34 GMT 2007
On Nov 8, 2007, at 2:32 PM, Octavian Rasnita wrote:
> Hi,
>
> If I have a Catalyst application and I use
>
> PerlResponseHandler Application::Name
>
> in httpd.conf
>
> and I load that module in a startup.pl file, what happends with the
> modules that might be loaded by that Catalyst app?
> Are they also loaded before the server forks? Or I will need to load
> them manually one by one in the startup.pl?
All you have to load is your application, i.e.:
PerlModule MyApp
Everything is then loaded before Apache forks any children.
See the config example here:
http://search.cpan.org/~agrundma/Catalyst-Engine-Apache-1.11/lib/Catalyst/Engine/Apache2/MP20.pm
-Andy
More information about the Catalyst
mailing list