mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-18 08:58:30 +00:00
Respond to /_/healthz as well for frontend
This commit is contained in:
parent
8e342ff2ba
commit
b5d1bf66a5
@ -56,6 +56,9 @@ export default async function(opts) {
|
||||
appZ.get('/healthz', ((req, res) => {
|
||||
res.end();
|
||||
}));
|
||||
appZ.get('/_/healthz', ((req, res) => {
|
||||
res.end();
|
||||
}));
|
||||
|
||||
const app = express();
|
||||
app.use(function(req, res, next) {
|
||||
@ -66,7 +69,7 @@ export default async function(opts) {
|
||||
next();
|
||||
}
|
||||
});
|
||||
const prod = process.env.NODE_ENV === 'production';
|
||||
const prod = process.env.NODE_ENV !== 'production';
|
||||
|
||||
const port = prod ? (process.env.PORT || 8086) : opts.port;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user