forked from zetonteam/zeton_full_stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (32 loc) · 854 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
42
43
44
45
46
47
up:
docker compose up
up-d:
docker compose up -d
build:
docker compose up --build
build-d:
docker compose up --build -d
down:
docker compose down
drop:
docker compose down -v
load_data:
docker compose exec web bash -c "python manage.py loaddata fixtures/*.json"
createsuperuser:
docker compose exec web python manage.py createsuperuser
makemigrations:
docker compose exec web python manage.py makemigrations
migrate:
docker compose exec web python manage.py migrate
shell:
docker compose exec web bash -c "python manage.py shell"
dbshell:
docker compose exec web bash -c "python django-admin dbshell"
psql:
docker compose exec -i db psql -U postgres
test:
docker compose exec web pytest
test-v:
docker compose exec web pytest -v
get-token:
python3 zeton_django/scripts/get_token.py --u opiekun1 --p opiekun1 | jq ".access"