diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..50253ff --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +build: + docker-compose build --pull + +makemigrations: + docker-compose run --rm app python manage.py makemigrations + +migrate: + docker-compose run --rm app python manage.py migrate + +createsu: + docker-compose run --rm app python manage.py createsuperuser + +init: build migrate + +# Development + +up: + docker-compose up + +django-manage: + docker-compose run app python manage.py $(command) + +shell: + docker-compose run app python manage.py shell_plus + +full: init up + +kill: + docker-compose down + +cleanup: + docker-compose down -v + +test: + docker-compose run --rm app sh -c 'python -m pytest -k "$(target)" --exitfirst' + +# Utils + +bash: + docker-compose run --rm app bash |