blob: cdc51efdd75760cac4d569c2bfb09b1520e8e613 (
plain)
- #!/usr/bin/env plackup
- use strict;
- use warnings;
- use FindBin qw($Bin);
- use Plack::Builder;
- #use Plack::App::File;
- use Plack::App::Directory;
- builder {
- eval { enable 'DirIndex' };
- eval { enable 'Deflater' };
- # enable 'Debug', panels => [ qw(DBITrace Memory Timer) ];
- # mount '/usr/share/javascript' => Plack::App::File->new( root => '/usr/share/javascript' )->to_app;
- mount '/' =>
- Plack::App::Directory->new( root => "$Bin/../build" )->to_app;
- };
|