2024-10-20 22:05:20 +00:00
|
|
|
export RUST_BACKTRACE := "1"
|
|
|
|
export RUST_LOG := "trace"
|
2024-12-04 17:25:56 +00:00
|
|
|
export CONTEXT_ARGS := "--config config.toml --database tmp/dbs/minauthator.db --static-assets ./assets"
|
2024-10-20 22:05:20 +00:00
|
|
|
|
2024-12-09 08:38:39 +00:00
|
|
|
watch-server *args:
|
|
|
|
cargo-watch -x "run --bin minauthator-server -- $CONTEXT_ARGS {{args}}"
|
2024-10-20 22:05:20 +00:00
|
|
|
|
2024-12-09 08:38:39 +00:00
|
|
|
server *args:
|
|
|
|
cargo run --bin minauthator-server -- $CONTEXT_ARGS {{args}}
|
2024-12-03 12:20:33 +00:00
|
|
|
|
2024-12-09 08:38:39 +00:00
|
|
|
admin *args:
|
|
|
|
cargo run --bin minauthator-admin -- $CONTEXT_ARGS {{args}}
|
2024-10-20 22:05:20 +00:00
|
|
|
|
2024-12-09 08:38:39 +00:00
|
|
|
docker-build *args:
|
|
|
|
docker build -t lefuturiste/minauthator {{args}} .
|
2024-10-20 22:05:20 +00:00
|
|
|
|
|
|
|
docker-init-db:
|
2024-12-03 22:58:20 +00:00
|
|
|
docker run \
|
|
|
|
-v ./tmp/docker/config:/etc/minauthator \
|
|
|
|
-v minauthator-db:/var/lib/minauthator \
|
|
|
|
lefuturiste/minauthator \
|
|
|
|
/usr/local/bin/minauthator_init_db.sh
|
2024-10-20 22:05:20 +00:00
|
|
|
|
2024-12-03 22:58:20 +00:00
|
|
|
docker-run:
|
|
|
|
docker run \
|
|
|
|
-p 127.0.0.1:3085:8080 \
|
|
|
|
-v ./tmp/docker/config:/etc/minauthator \
|
|
|
|
-v minauthator-db:/var/lib/minauthator \
|
|
|
|
lefuturiste/minauthator
|
2024-10-20 22:05:20 +00:00
|
|
|
|
2024-12-09 08:38:39 +00:00
|
|
|
init-db *args:
|
|
|
|
sqlite3 {{args}} tmp/dbs/minauthator.db < migrations/all.sql
|
2024-11-02 16:37:57 +00:00
|
|
|
|