summaryrefslogtreecommitdiff
path: root/bin/build.psgi
blob: cdc51efdd75760cac4d569c2bfb09b1520e8e613 (plain)
  1. #!/usr/bin/env plackup
  2. use strict;
  3. use warnings;
  4. use FindBin qw($Bin);
  5. use Plack::Builder;
  6. #use Plack::App::File;
  7. use Plack::App::Directory;
  8. builder {
  9. eval { enable 'DirIndex' };
  10. eval { enable 'Deflater' };
  11. # enable 'Debug', panels => [ qw(DBITrace Memory Timer) ];
  12. # mount '/usr/share/javascript' => Plack::App::File->new( root => '/usr/share/javascript' )->to_app;
  13. mount '/' =>
  14. Plack::App::Directory->new( root => "$Bin/../build" )->to_app;
  15. };