mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
This reverts commit 422a3ee9c2
.
Signed-off-by: rare-magma <rare-magma@posteo.eu>
pull/3614/head
2 changed files with 0 additions and 26 deletions
@ -1,24 +0,0 @@ |
|||
const http = require("node:http"); |
|||
|
|||
const options = { |
|||
host : "localhost", |
|||
path: "/api/v1/health", |
|||
port : "3333", |
|||
}; |
|||
|
|||
const healthCheck = http.request(options, (res) => { |
|||
if (res.statusCode === 200) { |
|||
process.exit(0); |
|||
} |
|||
else { |
|||
console.error(res.statusMessage) |
|||
process.exit(1); |
|||
} |
|||
}); |
|||
|
|||
healthCheck.on('error', (err) => { |
|||
console.error(err.message); |
|||
process.exit(1); |
|||
}); |
|||
|
|||
healthCheck.end(); |
Loading…
Reference in new issue