-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (36 loc) · 1.34 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
build:
docker compose -f local.yml up --build -d --remove-orphans
up:
docker compose -f local.yml up -d
down:
docker compose -f local.yml down
show_logs:
docker compose -f local.yml logs
migrate:
docker compose -f local.yml run --rm api python3 manage.py migrate
makemigrations:
docker compose -f local.yml run --rm api python3 manage.py makemigrations
collectstatic:
docker compose -f local.yml run --rm api python3 manage.py collectstatic --no-input --clear
superuser:
docker compose -f local.yml run --rm api python3 manage.py createsuperuser
down-v:
docker compose -f local.yml down -v
volume:
docker volume inspect django-content-dev-prod_local_postgres_data
content:
docker compose -f local.yml exec postgres psql --username=postgres --dbname=djangocontent
flake8:
docker compose -f local.yml exec api flake8 .
black-check:
docker compose -f local.yml exec api black --check --exclude=migrations .
black-diff:
docker compose -f local.yml exec api black --diff --exclude=migrations .
black:
docker compose -f local.yml exec api black --exclude=migrations .
isort-check:
docker compose -f local.yml exec api isort . --check-only --skip env --skip migrations
isort-diff:
docker compose -f local.yml exec api isort . --diff --skip env --skip migrations
isort:
docker compose -f local.yml exec api isort . --skip env --skip migrations