2024-10-31 14:17:58 -04:00
|
|
|
(async () => {
|
|
|
|
try {
|
2024-11-02 17:38:43 -04:00
|
|
|
const res = await fetch('http://localhost:3000/healthcheck')
|
2024-10-31 14:17:58 -04:00
|
|
|
if (await res.text() === 'ok') {
|
|
|
|
process.exit(0)
|
|
|
|
}
|
|
|
|
} catch (e) { }
|
|
|
|
process.exit(1)
|
|
|
|
})()
|