Skip to content

Commit 8d2cc6a

Browse files
committed
Remove setting of PLACK_ENV
This should no longer be required as MountPSGI has been updated to set PLACK_ENV.
1 parent 0166e20 commit 8d2cc6a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/MetaCPAN/API.pm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ use MetaCPAN::Script::Runner ();
2626
use Search::Elasticsearch ();
2727
use Try::Tiny qw( catch try );
2828

29-
# MountPSGI doesn't set PLACK_ENV, so Plack::Util::load_psgi defaults to development.
30-
# Hack around that until MountPSGI is fixed.
31-
$ENV{PLACK_ENV} ||= $ENV{'MOJO_MODE'} || 'development';
32-
3329
has es => sub {
3430
return Search::Elasticsearch->new(
3531
client => '2_0::Direct',

0 commit comments

Comments
 (0)