-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (38 loc) · 1.43 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
57
58
59
60
61
62
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
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
# ping-api:
# docker-compose -f local.yml exec authors-src_nginx_1 ping api
down-v:
docker-compose -f local.yml down -v
volume:
docker volume inspect authors-src_local_postgres_data
authors-db:
docker-compose -f local.yml exec postgres psql --username=vince --dbname=authors-live
flake8:
docker-compose -f local.yml exec api flake8 .
black-check:
docker-compose -f local.yml exec api black --check --exclude=makemigrations .
black-diff:
docker-compose -f local.yml exec api black --diff --exclude=makemigrations .
black:
docker-compose -f local.yml exec api black --exclude=makemigrations .
isort-check:
docker-compose -f local.yml exec api isort . --check-only --skip env --skip makemigrations
isort-diff:
docker-compose -f local.yml exec api isort . --diff --skip env --skip makemigrations
isort:
docker-compose -f local.yml exec api isort . --skip env --skip makemigrations