Skip to content

Commit 2bcb20a

Browse files
feat: added additional shortcuts to the makefile (#2283)
fixes #2208. Co-authored-by: Vignesh Hari <[email protected]>
1 parent a7287b1 commit 2bcb20a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build, re-build, up, down, list, logs, test, makemigrations
1+
.PHONY: build, re-build, up, down, list, logs, test, makemigrations, reset_db
22

33

44
DOCKER_VERSION := $(shell docker --version 2>/dev/null)
@@ -47,3 +47,10 @@ test-coverage:
4747
docker compose exec backend bash -c "coverage run manage.py test --settings=config.settings.test --keepdb --parallel --shuffle"
4848
docker compose exec backend bash -c "coverage combine || true; coverage xml"
4949
docker compose cp backend:/app/coverage.xml coverage.xml
50+
51+
reset_db:
52+
docker compose exec backend bash -c "python manage.py reset_db --noinput"
53+
docker compose exec backend bash -c "python manage.py migrate"
54+
55+
%:
56+
docker compose exec backend bash -c "python manage.py $*"

0 commit comments

Comments
 (0)