summaryrefslogtreecommitdiff
path: root/Makefile
blob: 50253ffb7eab48b2e743e878b55d300e3c12bea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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