i really fucking hate webdev
This commit is contained in:
parent
44bdbaf4c6
commit
e443c28fc4
@ -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
|
||||
|
||||
|
@ -1,2 +1,12 @@
|
||||
<script lang="ts">
|
||||
import type { PageProps } from "./$types"
|
||||
|
||||
let { data }: PageProps = $props()
|
||||
|
||||
console.log(data)
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user