-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 809 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 809 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
makemig:
python3 manage.py makemigrations
migrate:
python3 manage.py migrate
createlocalsu:
python3 manage.py createsuperuser --email root@root.ru --username root -v 3
start-dev:
docker-compose up -d db-dev redis
filldb:
python3 manage.py filldb
collectstatic:
python manage.py collectstatic
start-local: makemig migrate filldb collectstatic createlocalsu
makemig-prod:
docker-compose exec -it backend-prod python manage.py makemigrations
migrate-prod:
docker-compose exec -it backend-prod python manage.py migrate
createlocalsu-prod:
docker-compose exec -it backend-prod python manage.py createsuperuser --email root@root.ru --username root -v 3
filldb-prod:
docker-compose exec -it backend-prod python manage.py filldb
start-prod:
docker-compose up -d backend-prod db-prod nginx redis