2024-10-20 22:05:20 +00:00
|
|
|
export RUST_BACKTRACE := "1"
|
|
|
|
export RUST_LOG := "trace"
|
|
|
|
|
|
|
|
watch-run:
|
2024-11-15 17:34:17 +00:00
|
|
|
cargo-watch -x 'run -- --config ./config.toml --database ./tmp/dbs/minauthator.db --static-assets ./assets'
|
2024-10-20 22:05:20 +00:00
|
|
|
|
|
|
|
run:
|
2024-11-15 17:34:17 +00:00
|
|
|
cargo run -- --database ./tmp/dbs/minauthator.db --config ./config.toml --static-assets ./assets
|
2024-10-20 22:05:20 +00:00
|
|
|
|
|
|
|
docker-run:
|
2024-11-15 17:34:17 +00:00
|
|
|
docker run -p 3085:8080 -v ./tmp/docker/config:/etc/minauthator -v ./tmp/docker/db:/var/lib/minauthator minauthator
|
2024-10-20 22:05:20 +00:00
|
|
|
|
|
|
|
docker-init-db:
|
2024-11-15 17:34:17 +00:00
|
|
|
docker run -v ./tmp/docker/config:/etc/minauthator -v ./tmp/docker/db:/var/lib/minauthator minauthator /usr/local/bin/minauthator_init_db.sh
|
2024-10-20 22:05:20 +00:00
|
|
|
|
|
|
|
docker-build:
|
2024-11-15 17:34:17 +00:00
|
|
|
docker build -t minauthator .
|
2024-10-20 22:05:20 +00:00
|
|
|
|
2024-11-02 16:37:57 +00:00
|
|
|
init-db:
|
2024-11-15 17:34:17 +00:00
|
|
|
sqlite3 -echo tmp/dbs/minauthator.db < migrations/all.sql
|
2024-11-02 16:37:57 +00:00
|
|
|
|