fix: migrations and scripts should not be read-only

This commit is contained in:
Ben Allfree 2023-11-09 07:20:40 -08:00
parent 5716c9fa71
commit 5e7703c346
2 changed files with 4 additions and 6 deletions

View File

@ -71,8 +71,8 @@ global.EventSource = EventSource
slug: MOTHERSHIP_NAME(),
port: MOTHERSHIP_PORT(),
extraBinds: [
`${MOTHERSHIP_HOOKS_DIR()}:/home/pocketbase/pb_hooks:ro`,
`${MOTHERSHIP_MIGRATIONS_DIR()}:/home/pocketbase/pb_migrations:ro`,
`${MOTHERSHIP_HOOKS_DIR()}:/home/pocketbase/pb_hooks`,
`${MOTHERSHIP_MIGRATIONS_DIR()}:/home/pocketbase/pb_migrations`,
],
})
resolve(url)

View File

@ -258,13 +258,11 @@ export const instanceService = mkSingleton(
extraBinds: flatten([
globSync(join(INSTANCE_APP_MIGRATIONS_DIR(), '*.js')).map(
(file) =>
`${file}:/home/pocketbase/pb_migrations/${basename(
file,
)}:ro`,
`${file}:/home/pocketbase/pb_migrations/${basename(file)}`,
),
globSync(join(INSTANCE_APP_HOOK_DIR(), '*.js')).map(
(file) =>
`${file}:/home/pocketbase/pb_hooks/${basename(file)}:ro)`,
`${file}:/home/pocketbase/pb_hooks/${basename(file)})`,
),
]),
version,