Skip to content

Commit d00dac5

Browse files
authored
Merge pull request #881 from metacpan/ssoriche/fix_development_mode
Update MountPSGI to set PLACK_ENV
2 parents 3b5b61a + 8d2cc6a commit d00dac5

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

cpanfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ requires 'strictures', 1;
177177
requires 'utf8';
178178
requires 'version', '0.9901';
179179
requires 'warnings';
180-
requires 'Mojolicious::Plugin::MountPSGI';
180+
requires 'Mojolicious::Plugin::MountPSGI', '0.14';
181181
requires 'Mojolicious::Plugin::OpenAPI';
182182
requires 'YAML::XS', '0.67'; # Mojolicious::Plugin::OpenAPI YAML loading
183183

cpanfile.snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4844,10 +4844,10 @@ DISTRIBUTIONS
48444844
List::Util 1.41
48454845
Time::Local 1.2
48464846
perl 5.010001
4847-
Mojolicious-Plugin-MountPSGI-0.13
4848-
pathname: M/MR/MRAMBERG/Mojolicious-Plugin-MountPSGI-0.13.tar.gz
4847+
Mojolicious-Plugin-MountPSGI-0.14
4848+
pathname: J/JB/JBERGER/Mojolicious-Plugin-MountPSGI-0.14.tar.gz
48494849
provides:
4850-
Mojolicious::Plugin::MountPSGI 0.13
4850+
Mojolicious::Plugin::MountPSGI 0.14
48514851
Mojolicious::Plugin::MountPSGI::Proxy undef
48524852
requirements:
48534853
ExtUtils::MakeMaker 0

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)