updated healthcheck with a dedicated function
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
const port = process.env.PORT || 8080;
|
||||
|
||||
fetch(`http://127.0.0.1:${port}/healthz`)
|
||||
.then((res)) => process.exit(res.ok ? 0:1))
|
||||
.catch(() process.exit(1));
|
||||
Reference in New Issue
Block a user