-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 943 Bytes
/
Makefile
File metadata and controls
44 lines (31 loc) · 943 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
43
44
MANAGE_PY := docker-compose run --rm web python manage.py
default:
@echo "Call a specific subcommand"
@exit 1
.state/docker-build: docker-compose.yml tools/docker/Dockerfile requirements-dev.txt
docker-compose build
mkdir -p .state
touch .state/docker-build
build:
docker-compose build
mkdir -p .state
touch .state/docker-build
serve: .state/docker-build
docker-compose up
tests: .state/docker-build
docker-compose run -e TOXENV=${TOXENV} --rm web tox
manage: .state/docker-build
$(MANAGE_PY) $(CMD)
dbshell: .state/docker-build
$(MANAGE_PY) dbshell
shell: .state/docker-build
$(MANAGE_PY) shell
migrate: .state/docker-build
$(MANAGE_PY) migrate
makemigrations: .state/docker-build
$(MANAGE_PY) makemigrations
dbbackup: .state/docker-build
$(MANAGE_PY) dbbackup
dbrestore: .state/docker-build
$(MANAGE_PY) dbrestore
.PHONY: default build serve tests dbshell shell manage migrate makemigrations dbbackup dbrestore