Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.663 kb
use lib "lib";
use Dancer;
load_app "Library";
use Log::Log4perl;
use Dancer::Config 'setting';
setting apphandler => 'PSGI';
Dancer::Config->load;
use Plack::Builder;
my $app = sub {
my $env = shift;
my $request = Dancer::Request->new( $env );
Dancer->dance( $request );
};
builder {
enable 'Session', store => 'File';
enable 'Debug';
enable "ConsoleLogger";
enable "Plack::Middleware::Static",
path => qr{^/(images|js|css)/}, root => './public/';
enable "Plack::Middleware::ServerStatus::Lite",
path => '/status',
allow => [ '127.0.0.1', '192.168.0.0/16' ],
scoreboard => '/tmp';
$app;
};
Jump to Line
Something went wrong with that request. Please try again.