-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (35 loc) · 1.37 KB
/
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
COMPOSE_FILE = docker-compose.yml
upbuild:
docker-compose -f $(COMPOSE_FILE) up --build
up:
docker-compose -f $(COMPOSE_FILE) up
up-detached:
docker-compose -f $(COMPOSE_FILE) up -d
build:
docker-compose -f $(COMPOSE_FILE) build
rebuild:
docker-compose -f $(COMPOSE_FILE) up --build --force-recreate
restart:
docker-compose -f $(COMPOSE_FILE) restart
down:
docker-compose -f $(COMPOSE_FILE) down
stop:
docker-compose -f $(COMPOSE_FILE) stop
logs:
docker-compose -f $(COMPOSE_FILE) logs $(filter-out $@,$(MAKECMDGOALS))
makemigrations:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py makemigrations
migrate:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py migrate $(filter-out $@,$(MAKECMDGOALS))
flush:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py flush
createsuperuser:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py createsuperuser
startapp:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py startapp $(filter-out $@,$(MAKECMDGOALS))
collectstatic:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py collectstatic
command:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py $(filter-out $@,$(MAKECMDGOALS))
swagger:
docker-compose -f $(COMPOSE_FILE) run --rm django python manage.py spectacular --file schema.yaml --validate --fail-on-warn