X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FScript%2FServer.pm;h=05dd81454371ace2a7b882e852ebf82172c046e0;hb=80a909c28a951c5f2a9a98ab673c4c0a295b6988;hp=1d8c7cf401a0a868dec5763412fd8ebd121dd071;hpb=5980417626228b7526dc3f56a8678f052f7e051f;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Script/Server.pm b/lib/Catalyst/Script/Server.pm index 1d8c7cf..05dd814 100644 --- a/lib/Catalyst/Script/Server.pm +++ b/lib/Catalyst/Script/Server.pm @@ -75,11 +75,13 @@ has background => ( ## broken now, WHY?! -has app => ( - #traits => [qw(NoGetopt)], +has _app => ( + reader => 'app', + init_arg => 'app', + traits => [qw(NoGetopt)], isa => 'Str', is => 'ro', - required => 1, + required => 0, ); has restart => ( @@ -121,6 +123,7 @@ sub run { pod2usage() if $self->help; my $app = $self->app; + warn "App is $app"; Class::MOP::load_class($app); $app->run( $self->listen, $self->host,