2 BEGIN { $ENV{DANCER_APPHANDLER} = 'PSGI';}
4 use FindBin '$RealBin';
5 use Plack::Handler::FCGI;
7 # For some reason Apache SetEnv directives don't propagate
8 # correctly to the dispatchers, so forcing PSGI and env here
10 set apphandler => 'PSGI';
11 set environment => 'production';
13 my $psgi = path($RealBin, '..', 'bin', 'app.psgi');
15 die "Unable to read startup script: $@" if $@;
16 my $server = Plack::Handler::FCGI->new(nproc => 5, detach => 1);