-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
59 lines (42 loc) · 899 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
ifneq (,$(wildcard ./.env))
include .env
export
ENV_FILE_PARAM = --env-file .env
endif
act:
source env/Scripts/activate
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
run:
python manage.py runserver
cpass:
python manage.py changepassword "$(email)"
shell:
python manage.py shell
sapp:
python manage.py startapp
reqm:
pip install -r requirements.txt
suser:
python manage.py createsuperuser
ureqm:
pip freeze > requirements.txt
# DOCKER COMMANDS
build:
docker-compose up --build -d --remove-orphans
up:
docker-compose up -d
down:
docker-compose down
show-logs:
docker-compose logs