Hi,
I'd like to add PAR support to Catalyst, but it's not as easy as it
sounds.
Modules are auto-loaded by Module::Pluggable::Fast and we have to
support different deployment platforms like CGI, FCGI and mod_perl.
A usual Catalyst project looks much like every cpan dist. (should be
packaged in this non installed state)
./Build.PL
./Changes
./Makefile.PL
./README
./lib
./lib/MyApp
./lib/MyApp/Controller
./lib/MyApp/Model
./lib/MyApp/View
./lib/MyApp.pm
./root
./root/favicon.ico
./script
./script/myapp_cgi.pl
./script/myapp_create.pl
./script/myapp_fastcgi.pl
./script/myapp_par.pl
./script/myapp_server.pl
./script/myapp_test.pl
./t
./t/01app.t
Ok, since it's nearly impossible (imho) to create par's that support
all deployment platforms my plan was to create a par for each one.
./script/myapp_package.pl myapp_cgi.par CGI
The script initializes the whole app and loads all needed modules
(works for all platforms), so it has everything we need in the par in
%INC.
Now the parts i need some help with:
1. How do i create a par from my %INC?
2. How do i add the whole Catalyst project (like shown above) to the
par?
--
sebastian