write a proper schema.sql
[ppolls.git] / public / dispatch.cgi
blobea558caca0f7362a4522951a5f8071e439d6ce7a
1 #!/usr/bin/env perl
2 use Dancer ':syntax';
3 use FindBin '$RealBin';
4 use Plack::Runner;
6 # For some reason Apache SetEnv directives dont propagate
7 # correctly to the dispatchers, so forcing PSGI and env here
8 # is safer.
9 set apphandler => 'PSGI';
10 set environment => 'production';
12 my $psgi = path($RealBin, '..', 'bin', 'app.pl');
13 Plack::Runner->run($psgi);