-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
64 lines (47 loc) · 1.59 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
63
64
#clean:
# pre-commit run --all-files
clean:
pre-commit run --color=always --all-files
build:
docker compose -f local.yml --env-file .envs/.local/django.env up --build -d --remove-orphans
build-log:
docker compose -f local.yml --env-file .envs/.local/django.env up --build
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 server
#makemigrations:
# docker compose -f local.yml run --rm server python manage.py makemigrations
#
#migrate:
# docker compose -f local.yml run --rm server python manage.py migrate
collectstatic:
docker compose -f local.yml run --rm server python manage.py collectstatic --no-input --clear
createsuperuser:
python manage.py createsuperuser
makemigrations:
python manage.py makemigrations
migrate:
python manage.py migrate
dumpdata:
python -Xutf8 ./manage.py dumpdata --exclude=auth --exclude=contenttypes --exclude=sessions -o mydata.json
loaddata:
python -Xutf8 ./manage.py loaddata mydata.json
down-v:
docker compose -f local.yml down -v
volume:
docker volume inspect local_postgres_data
spotify-db:
docker compose -f local.yml exec postgres psql --username=mafan --dbname=spotify-live
cov:
coverage run --source='.' --omit='*/migrations/*.py,*/asgi.py,*/wsgi.py,*/manage.py' manage.py test
cov-gen:
coverage html
cov-docker:
docker compose -f local.yml run --rm server coverage run --source='.' --omit='*/migrations/*.py,*/asgi.py,*/wsgi.py,*/manage.py' manage.py test
cov-gen-docker:
docker compose -f local.yml run --rm server coverage html