dispatch.cgi 416B

123456789101112131415
  1. #!/usr/bin/env perl
  2. use Dancer ':syntax';
  3. use FindBin '$RealBin';
  4. use Plack::Runner;
  5. # For some reason Apache SetEnv directives dont propagate
  6. # correctly to the dispatchers, so forcing PSGI and env here
  7. # is safer.
  8. set apphandler => 'PSGI';
  9. set environment => 'production';
  10. my $psgi = path($RealBin, '..', 'bin', 'app.pl');
  11. die "Unable to read startup script: $psgi" unless -r $psgi;
  12. Plack::Runner->run($psgi);