diff --git a/Taskfile.yml b/Taskfile.yml index 0798ead..389f3ab 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -41,9 +41,14 @@ tasks: - echo "Resetting PostgreSQL data volume..." - "{{.COMPOSE_CMD}} down -v" + clean: + desc: Clean the API build artifacts + cmds: + - cd "{{.SERVER_DIR}}" && DATABASE_URL="{{.DATABASE_URL}}" cargo clean --release --locked && cargo clean --locked + run: desc: Run the API - deps: [db-up] + deps: [setup, db-up] cmds: - cd "{{.SERVER_DIR}}" && DATABASE_URL="{{.DATABASE_URL}}" cargo run --release --locked