Skip to content

Commit

Permalink
added another PSGI recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 11, 2011
1 parent 6b1e47d commit d1e6e4b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit d1e6e4b

Please sign in to comment.