Permalink
Browse files

require latest Catalyst and get rid of Catalyst::Engine::PSGI

  • Loading branch information...
1 parent 0631939 commit 3e25517ab1fc0f76f3866e051a230db8c823755a @monken monken committed Mar 20, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −3 app.psgi
  2. +1 −1 dist.ini
View
4 app.psgi
@@ -24,13 +24,11 @@ use Plack::Middleware::ReverseProxy;
use Plack::Middleware::Session::Cookie;
use Plack::Middleware::ServerStatus::Lite;
-MetaCPAN::Web->setup_engine('PSGI');
-
my $app = Plack::App::URLMap->new;
$app->map( '/static/' => Plack::App::File->new( root => 'root/static' ) );
$app->map( '/favicon.ico' =>
Plack::App::File->new( file => 'root/static/icons/favicon.ico' ) );
-$app->map( '/' => sub { MetaCPAN::Web->run(@_) } );
+$app->map( '/' => MetaCPAN::Web->psgi_app );
my $scoreboard = "$FindBin::RealBin/var/tmp/scoreboard";
unless (-d $scoreboard) {
File::Path::make_path($scoreboard) or die "Can't make_path $scoreboard: $!";
View
2 dist.ini
@@ -8,9 +8,9 @@ version = 0.0.1
[Prereqs]
AnyEvent::HTTP = 0
Captcha::reCAPTCHA = 0.94
+Catalyst = 5.90011
Catalyst::Authentication::Store::Proxy = 0.0.1
Catalyst::Controller::ActionRole = 0
-Catalyst::Engine::PSGI = 0
Catalyst::Plugin::Authentication = 0
Catalyst::Plugin::ConfigLoader = 0
Catalyst::Plugin::Static::Simple = 0

0 comments on commit 3e25517

Please sign in to comment.