diff --git a/api/docker-entrypoint.sh b/api/docker-entrypoint.sh index 30dbbe2..d9d7f04 100644 --- a/api/docker-entrypoint.sh +++ b/api/docker-entrypoint.sh @@ -7,13 +7,12 @@ set -e : "${PB_DATA_DIR:?need PB_DATA_DIR}" # ensure data dir exists (for embedded SQLite + migrations + files) -mkdir -p "${PB_DATA_DIR}" -export POCKETBASE_DATA_DIR="${PB_DATA_DIR}" +# mkdir -p "${PB_DATA_DIR}" +# export POCKETBASE_DATA_DIR="${PB_DATA_DIR}" # if there are no users yet, create the superuser # we check the sqlite file for any existing record in the users table -if [ ! -f "${PB_DATA_DIR}/pb_data.db" ] || ! \ - sqlite3 "${PB_DATA_DIR}/pb_data.db" \ +if ! sqlite3 "/pb/pb_data/data.db" \ "SELECT id FROM users WHERE email='${PB_ADMIN_EMAIL}' LIMIT 1;" \ | grep -q .; then diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index cc88df0..e40fec9 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,2 +1,12 @@ + + +

Welcome to SvelteKit

Visit svelte.dev/docs/kit to read the documentation