X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FUpgrading.pod;h=07a1a673c5df06b1e425d80fb1c8e7476189a14d;hb=3f22de0b6599bd10c0c50c0a33c3b359ffc1ea8d;hp=dc5486110c1488e774eed105b3f59155456512ac;hpb=93a57b4bb80efb5cee28d335a0a2e6a681ecd7d7;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index dc54861..07a1a67 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 will -have written (or generated) an C file similar to this one: +have written (or generated) a C