26 lines
692 B
Makefile
26 lines
692 B
Makefile
_default:
|
|
@just --list
|
|
|
|
# Don't use this secret key for your own install, it's public!
|
|
export SECRET_KEY := "MHSePvm1msyOkYuJ7u+MtyJYCzgdHCS7QNvrk9ts+rI="
|
|
|
|
build-assets:
|
|
cd static && npm run build
|
|
|
|
[doc("Run the reader locally in demo mode.")]
|
|
run-local-demo *args: build-assets
|
|
cargo run -- --demo {{args}}
|
|
|
|
# Run the reader locally against a persistent sqlite database
|
|
run-local-persistant-db *args: build-assets
|
|
cargo run -- --database data.sqlite
|
|
|
|
sqlx-prepare:
|
|
#!/usr/bin/env sh
|
|
if [ ! -f "data.sqlite" ]; then
|
|
touch data.sqlite
|
|
fi
|
|
DATABASE_URL="sqlite:data.sqlite" cargo sqlx migrate run
|
|
DATABASE_URL="sqlite:data.sqlite" cargo sqlx prepare
|
|
|