From f28bd89951bf9fd67b6dc97889878592780b3b72 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 16 May 2018 18:19:15 +0200 Subject: Add targets build-compact serve-quick serve-compact. --- bin/build.psgi | 21 +++++++++++++++++++++ bin/src.psgi | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 bin/build.psgi create mode 100755 bin/src.psgi (limited to 'bin') diff --git a/bin/build.psgi b/bin/build.psgi new file mode 100755 index 0000000..cdc51ef --- /dev/null +++ b/bin/build.psgi @@ -0,0 +1,21 @@ +#!/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; +}; 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; +}; -- cgit v1.2.3