Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move FindBin to app and require class
The symlink was placing the package in $INC{app.psgi}
which was confusing Catalyst when it was trying to find its home.
  • Loading branch information
rwstauner committed Jun 16, 2014
1 parent b27b1a7 commit b57ad6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion app.psgi

This file was deleted.

5 changes: 5 additions & 0 deletions app.psgi
@@ -0,0 +1,5 @@
use FindBin;
use lib "$FindBin::RealBin/lib";

# The class has the Plack initialization and returns the app.
require MetaCPAN::Server;
3 changes: 0 additions & 3 deletions lib/MetaCPAN/Server.pm
Expand Up @@ -4,13 +4,10 @@ use strict;
use warnings;

use CatalystX::RoleApplicator;
use FindBin;
use Moose;
use Plack::Middleware::ReverseProxy;
use Plack::Middleware::ServerStatus::Lite;

use lib "$FindBin::RealBin/../";

extends 'Catalyst';

has api => ( is => 'ro' );
Expand Down

0 comments on commit b57ad6c

Please sign in to comment.