mirror of
https://github.com/pockethost/pockethost.git
synced 2025-10-14 00:59:25 +00:00
chore: ping api/health for instance health check
This commit is contained in:
parent
63ab434e54
commit
13564a18f6
@ -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`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user