-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (41 loc) · 967 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
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 bidout_auction_v4.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
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
requirements: # Install requirements
pip install -r requirements.txt
urequirements: # Update requirements
pip freeze > requirements.txt