Skip to content

Commit 90aaf80

Browse files
committed
Remove ServerStatus::Lite plugin for now
1 parent 7a2a12d commit 90aaf80

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/MetaCPAN/Server.pm

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -122,23 +122,6 @@ sub app {
122122
enable 'Rewrite', rules => sub {s{^/?v\d+/}{}};
123123
}
124124

125-
# Using an ES client against the API requires an index (/v0).
126-
# In production nginx handles this.
127-
128-
unless ( $ENV{HARNESS_ACTIVE} or $0 =~ /\.t$/ ) {
129-
my $scoreboard = $class->path_to(qw(var tmp scoreboard));
130-
131-
# This may be a File object if it doesn't exist so change it, then make it.
132-
my $dir = Path::Class::Dir->new(
133-
ref $scoreboard ? $scoreboard->stringify : $scoreboard );
134-
$dir->mkpath unless -d $dir;
135-
136-
enable 'ServerStatus::Lite',
137-
path => '/server-status',
138-
allow => ['127.0.0.1'],
139-
scoreboard => $scoreboard,
140-
;
141-
}
142125
$class->apply_default_middlewares( $class->psgi_app );
143126
};
144127
}

0 commit comments

Comments
 (0)