-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (41 loc) · 864 Bytes
/
Makefile
File metadata and controls
58 lines (41 loc) · 864 Bytes
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
APP_SERVICE_NAME = app
DB_SERVICE_NAME = db
RUN_APP = docker-compose exec $(APP_SERVICE_NAME)
RUN_POETRY = $(RUN_APP) poetry run
RUN_DJANGO = $(RUN_POETRY) python manage.py
RUN_PYTEST = $(RUN_POETRY) pytest
prepare:
docker-compose up -d --build
build:
docker-compose build
up-d:
docker-compose up -d
up:
docker-compose up
down:
docker-compose down
collectstatic:
$(RUN_DJANGO) collectstatic
makemigrations:
$(RUN_DJANGO) makemigrations
migrate:
$(RUN_DJANGO) migrate
show_urls:
$(RUN_DJANGO) show_urls
shell:
$(RUN_DJANGO) debugsqlshell
loaddata:
$(RUN_DJANGO) loaddata local_fixtures.json
zero:
$(RUN_DJANGO) migrate admin_portal zero
update:
$(RUN_APP) poetry update
app:
docker exec -it lc_inquiry_pro_app bash
db:
docker exec -it lc_inquiry_pro_db bash
test:
$(RUN_PYTEST)
format:
$(RUN_POETRY) black .
$(RUN_POETRY) isort .