X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FUpgrading.pod;h=b73f32ad0e758780a7f6f0eac43ba159c25f4282;hb=27dad9301094f25bcedc66c476ec8b9d61521fb7;hp=773e24605bce5165486e98383438395e16219e0e;hpb=0ea8962d9383c610ebfcd8f3f3b0095a63398640;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index 773e246..b73f32a 100644 --- a/lib/Catalyst/Upgrading.pod +++ b/lib/Catalyst/Upgrading.pod @@ -14,8 +14,10 @@ be taken with this upgrade and that testing should be greater than would be the case with a minor point update. It is highly recommended that you become familar with the L ecosystem -and documentation. Being able to take advantage of L development and -middleware is a major bonus to this upgrade. +and documentation. Being able to take advantage of L development and +middleware is a major bonus to this upgrade. Documentation about how to +take advantage of L by writing your own C<< .psgi >> file +is contained in L. If you have created a custom subclass of L you will need to convert it to be a subclass of L. @@ -43,7 +45,7 @@ work using using L or L as required. L, is however no longer supported, as Plack -does not support mod_perl version 1.99??? FIXME - is this true? +does not support mod_perl version 1.99 =head2 Upgrading the HTTP Engine @@ -61,19 +63,30 @@ myapp_cgi.pl script is already upgraded enough to use L. If you were using L then L is automatically loaded. -XXX FIXME - note how to run Starman with different options. +If you were customising your server script to pass opttions to the prefork engine, +then this is no longer supported. The recommended route to implement this functionality +is to write a simple .psgi file for your application, then use the L untility. =head2 Upgrading the PSGI Engine If you were using L this new release supercedes this engine in supporting L. By default the Engine is now always L. As a result, you can stop depending on L in your -C. Additionally, if you have an C script you no longer +C. + +Applications that were using L +previously should entirely continue to work in this release with no changes. + +However, if you have an C script, then you no longer need to specify the PSGI engine. Instead, the L application class -now has a new method C which returns a L compatible coderef. +now has a new method C which returns a L compatible coderef +which you can wrap in middleware of your choice. + +Catalyst will use the .psgi for your application if it is located in the C +directory of the application -For example, if you were using L in the past, you may -have written an C file similar to this one: +For example, if you were using L in the past, you will +have written (or generated) a C