File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -122,23 +122,6 @@ sub app {
122
122
enable ' Rewrite' , rules => sub {s { ^/?v\d +/} {} } ;
123
123
}
124
124
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
- }
142
125
$class -> apply_default_middlewares( $class -> psgi_app );
143
126
};
144
127
}
You can’t perform that action at this time.
0 commit comments