initial version of app - login working

This commit is contained in:
Oliver Gorwits
2012-01-06 22:15:23 +00:00
parent 57bb5ea5ef
commit b9a11449a4
12 changed files with 433 additions and 0 deletions

15
Netdisco/public/dispatch.cgi Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env perl
use Dancer ':syntax';
use FindBin '$RealBin';
use Plack::Runner;
# For some reason Apache SetEnv directives dont propagate
# correctly to the dispatchers, so forcing PSGI and env here
# is safer.
set apphandler => 'PSGI';
set environment => 'production';
my $psgi = path($RealBin, '..', 'bin', 'app.pl');
die "Unable to read startup script: $psgi" unless -r $psgi;
Plack::Runner->run($psgi);