There are still a load of options for the dev server (like writing a PID file) that we'll need to add to the plack server (or do ourselves manually?), and the entire set of options we actually pass into the application via ->run is unused by it.
I'm not sure if we are safe to change the original option passing convention or not - need to look at alternate engines and stuff..
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 (
}
+sub _plack_loader_args {
+ my ($self) = shift;
+ return (
+ port => $self->port,
+ host => $self->host,
+ keepalive => $self->keepalive ? 100 : 1,
+ );
+}
+
sub _application_args {
my ($self) = shift;
return (