fix: delete instance data

This commit is contained in:
Ben Allfree 2023-12-07 22:30:54 -08:00
parent b79863df28
commit f502a4b461
2 changed files with 5 additions and 1 deletions

View File

@ -72,9 +72,10 @@ global.EventSource = EventSource
slug: MOTHERSHIP_NAME(),
port: MOTHERSHIP_PORT(),
env: {
DATA_ROOT: DATA_ROOT(),
DATA_ROOT: `/home/pocketbase/data`,
},
extraBinds: [
`${DATA_ROOT()}:/home/pocketbase/data`,
`${MOTHERSHIP_HOOKS_DIR()}:/home/pocketbase/pb_hooks`,
`${MOTHERSHIP_MIGRATIONS_DIR()}:/home/pocketbase/pb_migrations`,
],

View File

@ -91,6 +91,9 @@ export function InstanceLogger(instanceId: string, target: string) {
})
}
})
tail.on('error', (e) => {
error(`Caught a tail error ${e}`)
})
cm.add(() => tail.unwatch())
} catch (e) {