-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 776 Bytes
/
Makefile
File metadata and controls
42 lines (28 loc) · 776 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
35
36
37
38
39
40
41
42
COMPOSE_CMD=docker-compose -p gissues -f docker/docker-compose.yml
build:
$(COMPOSE_CMD) build
up:
$(COMPOSE_CMD) up -d
down:
$(COMPOSE_CMD) down --remove-orphans --volumes
logs:
$(COMPOSE_CMD) logs -f
restart:
$(COMPOSE_CMD) restart
stop:
$(COMPOSE_CMD) stop
start:
$(COMPOSE_CMD) start
django:
$(COMPOSE_CMD) exec web python3 manage.py $(filter-out $@,$(MAKECMDGOALS))
shell:
$(COMPOSE_CMD) exec web python3 manage.py shell_plus
compile-requirements:
poetry export -f requirements.txt --output requirements.txt --without-hashes
test:
$(COMPOSE_CMD) exec web pytest
mypy:
$(COMPOSE_CMD) exec web mypy gissues/.
changelog:
git cliff -o CHANGELOG.md
.PHONY: build up down logs restart stop start compile-requirements django shell test mypy changelog