3 use FindBin
'$RealBin';
4 use Plack
::Handler
::FCGI
;
6 # For some reason Apache SetEnv directives dont propagate
7 # correctly to the dispatchers, so forcing PSGI and env here
9 set apphandler
=> 'PSGI';
10 set environment
=> 'production';
12 my $psgi = path
($RealBin, '..', 'bin', 'app.pl');
14 die "Unable to read startup script: $@" if $@
;
15 my $server = Plack
::Handler
::FCGI
->new(nproc
=> 5, detach
=> 1);