mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-19 09:28:29 +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) => {
|
appZ.get('/healthz', ((req, res) => {
|
||||||
res.end();
|
res.end();
|
||||||
}));
|
}));
|
||||||
|
appZ.get('/_/healthz', ((req, res) => {
|
||||||
|
res.end();
|
||||||
|
}));
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
@ -66,7 +69,7 @@ export default async function(opts) {
|
|||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const prod = process.env.NODE_ENV === 'production';
|
const prod = process.env.NODE_ENV !== 'production';
|
||||||
|
|
||||||
const port = prod ? (process.env.PORT || 8086) : opts.port;
|
const port = prod ? (process.env.PORT || 8086) : opts.port;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user