Permalink
Browse files

added another PSGI recipe

  • Loading branch information...
1 parent 6b1e47d commit d1e6e4b346aacb1e62c27f744546e5690c473064 @kraih committed Sep 11, 2011
Showing with 12 additions and 1 deletion.
  1. +12 −1 lib/Mojolicious/Guides/Cookbook.pod
@@ -154,7 +154,7 @@ variable.
=head2 Plack Middleware
-You can even use middleware right in your application.
+You can use middleware right in your application.
use Mojolicious::Lite;
use Plack::Builder;
@@ -169,6 +169,17 @@ You can even use middleware right in your application.
app->start;
};
+For more control you can even use deployment specific wrappers like
+C<myapp.fcgi>.
+
+ #!/usr/bin/env plackup -s FCGI
+ use Plack::Builder;
+
+ builder {
+ enable 'Deflater';
+ require 'myapp.pl';
+ };
+
=head2 Rewriting
Sometimes you might have to deploy your application in a blackbox environment

0 comments on commit d1e6e4b

Please sign in to comment.