diff options
Diffstat (limited to 'bin/src.psgi')
-rwxr-xr-x | bin/src.psgi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/src.psgi b/bin/src.psgi new file mode 100755 index 0000000..44e557a --- /dev/null +++ b/bin/src.psgi @@ -0,0 +1,20 @@ +#!/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/../src" )->to_app; +}; |