mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix: migrations and scripts should not be read-only
This commit is contained in:
parent
5716c9fa71
commit
5e7703c346
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user