mirror of
https://github.com/pockethost/pockethost.git
synced 2026-03-06 17:11:22 +00:00
fix: migrations and scripts should not be read-only
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user