Skip to content

Commit

Permalink
Use Catalyst's native PSGI engine
Browse files Browse the repository at this point in the history
This currently depends on the no_state_in_engine branch of Catalyst-Runtime.
  • Loading branch information
rafl committed Jan 14, 2012
1 parent 1be5bd9 commit 57229fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/MetaCPAN/Server.pm
Expand Up @@ -70,13 +70,10 @@ __PACKAGE__->setup(
OAuth2::Provider
)
);
__PACKAGE__->setup_engine('PSGI');
__PACKAGE__->meta->make_immutable( replace_constructor => 1 );

my $app = Plack::Middleware::ReverseProxy->wrap(
sub {
__PACKAGE__->run(@_);
}
__PACKAGE__->psgi_app,
);

Plack::Middleware::ServerStatus::Lite->wrap(
Expand Down

0 comments on commit 57229fb

Please sign in to comment.