-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (40 loc) · 1.03 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
ifneq (, $(wildcard .env))
include .env
export ENV_FILE_PARAM = --env-file .env
endif
build:
docker compose up --build -d --remove-orphans
build-server:
docker compose up --build -d api nginx
down:
docker compose down
up:
docker compose up
show-logs:
docker compose logs
migrate:
docker compose exec api python3 manage.py migrate
makemigrations:
docker compose exec api python3 manage.py makemigrations
superuser:
docker compose exec api python3 manage.py createsuperuser
collectstatic:
docker compose exec api python3 manage.py collectstatic --no-input --clear
down-v:
docker compose down -v
roomio-db:
docker compose exec db psql --username=postgres --dbname=postgres
api:
docker compose up api nginx -d --remove-orphans
db:
docker compose up db -d --remove-orphans
shell:
docker compose exec api python3 manage.py shell
test:
docker compose exec api pytest -p no:warnings --cov=.
test-html:
docker compose exec api pytest -p no:warnings --cov=. --cov-report=html
stop:
docker compose stop
watch:
docker compose watch