mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
80244ea4e2
Squash of feat/koreader-widget-board. KOReader plugin 2.0.0 gets the widget-board dashboard, redesigned book details, menus, lists and dialogs, Decor page and reading companions. Highlights, notes and bookmarks now stay in step across web, Kobo, KOReader and the phones (defects D-00 to D-20, migration 0121), and reading progress and narration hand off cleanly between devices.
14 lines
443 B
Bash
14 lines
443 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
E2E_DATABASE_URL="${E2E_DATABASE_URL:-postgres://bookorbit:bookorbit@localhost:5432/bookorbit_e2e}"
|
|
|
|
echo "Preparing dedicated e2e database..."
|
|
DATABASE_URL="$E2E_DATABASE_URL" pnpm --filter server e2e:db:prepare
|
|
|
|
echo "Applying migrations to e2e database..."
|
|
DATABASE_URL="$E2E_DATABASE_URL" pnpm --filter server db:migrate
|