forked from API-Imperfect/authors-haven-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (38 loc) · 1.38 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
54
55
56
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
show-logs-api:
docker compose -f local.yml logs api
makemigrations:
docker compose -f local.yml run --rm api python manage.py makemigrations
migrate:
docker compose -f local.yml run --rm api python manage.py migrate
collectstatic:
docker compose -f local.yml run --rm api python manage.py collectstatic --no-input --clear
superuser:
docker compose -f local.yml run --rm api python manage.py createsuperuser
down-v:
docker compose -f local.yml down -v
volume:
docker volume inspect src_local_postgres_data
authors-db:
docker compose -f local.yml exec postgres psql --username=alphaogilo --dbname=authors-live
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 venv --skip migrations
isort-diff:
docker compose -f local.yml exec api isort . --diff --skip venv --skip migrations
isort:
docker compose -f local.yml exec api isort . --skip venv --skip migrations