Catalystadventures in webdev with perl Building PAR PackagesYou know the problem, you got a application perfectly running on your development box, but then shudder you have to quickly move it to another one for demonstration/deployment/testing... PAR packages can save you from a lot of trouble here. They are usual Zip files that contain a blib tree, you can even include all prereqs and a perl interpreter by setting a few flags! Follow these few points to try it out! Install Catalyst 5.61 (or later) and PAR 0.89
Create a application
Add these lines to Makefile.PL (below "catalyst_files();")
Prepare the Makefile, test your app, create a PAR (the two Makefile.PL calls are no typo)
Future versions of Catalyst (5.62 and newer) will use a similar but more elegant calling convention.
Congratulations! Your package "myapp.par" is ready, the following steps are just optional. Test your PAR package with "parl" (no typo) :)
Yes, this nifty little starter application gets automatically included. You can also use "catalyst_par_script('myapp_server.pl')" to set a default script to execute. Want to create a binary that includes the Perl interpreter? No problem!
Have fun! -- sri last updated 3 years ago # |