chore: ping api/health for instance health check

This commit is contained in:
Ben Allfree 2023-12-07 08:35:44 -08:00
parent 63ab434e54
commit 13564a18f6

View File

@ -221,7 +221,7 @@ export const createPocketbaseService = async (
dbg(`Process ${slug} exited`)
})
if (command === 'serve') {
await tryFetch(url, {
await tryFetch(`${url}/api/health`, {
preflight: async () => {
dbg({ stopped, started, container: !!container })
if (stopped) throw new Error(`Container stopped`)