1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2025-01-04 07:46:45 +01:00
immich-public-proxy/app/healthcheck.js

10 lines
194 B
JavaScript
Raw Permalink Normal View History

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