-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (35 loc) · 811 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
.PHONY: start
start:
@docker compose up -d --build
.PHONY: stop
stop:
@docker compose down
.PHONY: restart
restart: stop start
.PHONY: shell
shell:
@docker compose exec -w /code/app web bash
.PHONY: shell-db
shell-db:
@docker compose exec db bash
.PHONY: migrations
migrations:
@docker compose exec -w /code/app web python manage.py makemigrations
.PHONY: migrate
migrate:
@docker compose exec -w /code/app web python manage.py migrate
.PHONY: superuser
superuser:
@docker compose exec -w /code/app web python manage.py createsuperuser
.PHONY: logs
logs:
@docker logs -f movie-web
.PHONY: clean
clean:
@docker system prune --volumes --all --force
.PHONY: test
test:
@docker compose exec -w /code/app web python manage.py test
.PHONY: freeze
freeze:
python -m pip freeze > requirements.txt