update healthcheck.js
This commit is contained in:
parent
69f5112b38
commit
e496c3b3be
|
@ -35,7 +35,7 @@ let options = {
|
|||
|
||||
let request = client.request(options, (res) => {
|
||||
console.log(`Health Check OK [Res Code: ${res.statusCode}]`);
|
||||
if (res.statusCode === 200) {
|
||||
if (res.statusCode === 302) {
|
||||
process.exit(0);
|
||||
} else {
|
||||
process.exit(1);
|
||||
|
|
Loading…
Reference in New Issue