package Catalyst::Script::FastCGI;
-
-BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' }
use Moose;
use MooseX::Types::Moose qw/Str Bool Int/;
use namespace::autoclean;
+sub _plack_engine_name { 'FCGI' }
+
with 'Catalyst::ScriptRole';
has listen => (
documentation => 'Specify a number of child processes',
);
+sub _plack_loader_args {
+ my ($self) = shift;
+ return (
+ map { $_ => $self->$_() }
+ qw/pidfile listen manager nproc detach keep_stderr/
+ );
+}
+
sub _application_args {
my ($self) = shift;
return (