autotasker/justfile

19 lines
621 B
Makefile

export RUST_BACKTRACE := "1"
export RUST_LOG := "trace"
watch-run:
cargo-watch -x 'run -- --config config.yaml --database ./tmp/dbs/autotasker.db --static-assets ./assets'
run:
cargo run -- --database ./tmp/dbs/autotasker.db --config ./config.yaml --static-assets ./assets
docker-run:
docker run -p 3085:8080 -v ./tmp/docker/config:/etc/autotasker -v ./tmp/docker/db:/var/lib/autotasker autotasker
docker-init-db:
docker run -v ./tmp/docker/config:/etc/autotasker -v ./tmp/docker/db:/var/lib/autotasker autotasker /usr/local/bin/autotasker_init_db.sh
docker-build:
docker build -t autotasker .