Skip to content

Commit

Permalink
better middleware recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 30, 2014
1 parent 725c0de commit ed64d42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -257,14 +257,15 @@ application logic.

builder {
enable 'Deflater';
require 'myapp.pl';
require './script/myapp';
};

You can also customize your application with L<Mojo::Server::PSGI>.
L<Mojo::Server::PSGI> can be used directly to load and customize applications
in the wrapper script.

#!/usr/bin/env plackup -s FCGI
use Plack::Builder;
use Mojo::Server::PSGI;
use Plack::Builder;

builder {
enable 'Deflater';
Expand Down

0 comments on commit ed64d42

Please sign in to comment.