We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0be776 commit 38a3fcfCopy full SHA for 38a3fcf
lib/MetaCPAN/API.pm
@@ -26,6 +26,10 @@ use MetaCPAN::Script::Runner ();
26
use Search::Elasticsearch ();
27
use Try::Tiny qw( catch try );
28
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
+
33
has es => sub {
34
return Search::Elasticsearch->new(
35
client => '2_0::Direct',
0 commit comments