[Catalyst] Catalyst::Engine::HTTP::Prefork failing to start my
script
Andy Grundman
andy at hybridized.org
Thu Dec 16 16:37:07 GMT 2010
On Dec 16, 2010, at 2:14 AM, Andreas J. Koenig wrote:
> Can't use an undefined value as an ARRAY reference at /usr/local/perl-5.10.1/lib/site_perl/5.10.1/Catalyst/Engine/HTTP/Prefork.pm line 35.
The line in question is:
@ARGV = @{ $options->{argv} };
So you should make sure your server.pl has something like this:
my @argv = @ARGV;
MyApp->run( $port, $host, {
argv => \@argv,
....
} );
I suppose it should also be patched to @{ $options->{argv} || [] } though. If you don't save argv like this, auto-restart will not relaunch the server correctly.
-Andy
More information about the Catalyst
mailing list