-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 858 Bytes
/
Makefile
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
41
format:
poetry run autoflake --in-place --remove-all-unused-imports --remove-unused-variables --recursive .
poetry run isort .
poetry run black .
build:
docker build -t {FILL_HERE}-django-base -f docker/Dockerfile.base .
docker compose build
up: down build
docker compose up
start:
docker compose start
down:
docker compose down --remove-orphans --volumes
stopapp:
docker compose stop web celery
startapp:
docker compose start web celery
restart: stopapp startapp
django_manage:
docker compose run init-web poetry run ./manage.py $(ARGS)
migrate:
$(MAKE) ARGS=makemigrations django_manage
$(MAKE) ARGS=migrate django_manage
infra-apply:
docker compose run init-infra
swagger:
docker compose exec web poetry run ./manage.py generateschema --file /app/openapi.yml
psql:
docker compose exec postgres psql -U postgres -d {FILL_HERE}