21 lines
704 B
Makefile
21 lines
704 B
Makefile
export RUST_BACKTRACE := "1"
|
|
export RUST_LOG := "trace"
|
|
|
|
watch-run:
|
|
cargo-watch -x 'run -- --config ./config.toml --database ./tmp/dbs/minauthator.db --static-assets ./assets'
|
|
|
|
run:
|
|
cargo run -- --database ./tmp/dbs/minauthator.db --config ./config.toml --static-assets ./assets
|
|
|
|
docker-run:
|
|
docker run -p 3085:8080 -v ./tmp/docker/config:/etc/minauthator -v ./tmp/docker/db:/var/lib/minauthator minauthator
|
|
|
|
docker-init-db:
|
|
docker run -v ./tmp/docker/config:/etc/minauthator -v ./tmp/docker/db:/var/lib/minauthator minauthator /usr/local/bin/minauthator_init_db.sh
|
|
|
|
docker-build:
|
|
docker build -t minauthator .
|
|
|
|
init-db:
|
|
sqlite3 -echo tmp/dbs/minauthator.db < migrations/all.sql
|
|
|