-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (43 loc) · 983 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
48
49
50
51
52
53
54
55
56
57
58
59
ifneq (,$(wildcard ./.env))
include .env
export
ENV_FILE_PARAM = --env-file .env
endif
build:
docker-compose up --build -d --remove-orphans
up:
docker-compose up -d
down:
docker-compose down
show-logs:
docker-compose logs
serv:
uvicorn socialnet.asgi:application --reload
mmig: # run with "make mmig" or "make mmig app='app'"
if [ -z "$(app)" ]; then \
python manage.py makemigrations; \
else \
python manage.py makemigrations "$(app)"; \
fi
mig: # run with "make mig" or "make mig app='app'"
if [ -z "$(app)" ]; then \
python manage.py migrate; \
else \
python manage.py migrate "$(app)"; \
fi
cities:
python manage.py cities_light
init:
python manage.py initial_data
test:
pytest --disable-warnings -vv -x
shell:
python manage.py shell
suser:
python manage.py createsuperuser
cpass:
python manage.py changepassword
reqm: # Install requirements
pip install -r requirements.txt
ureqm: # Update requirements
pip freeze > requirements.txt