Added task clean and release.
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user