-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
72 lines (49 loc) · 1.4 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
ARGUMENTS = $(filter-out $@,$(MAKECMDGOALS)) $(filter-out --,$(MAKEFLAGS))
docker-base = docker-compose -f docker-compose.e2e.yml
build-e2e:
$(docker-base) build --build-arg GIT_ACCESS_CODE=${GIT_ACCESS_CODE}
clean:
-find . -type f -name "*.pyc" -delete
-find . -type d -name "__pycache__" -delete
doc-manage:
docker exec -it api pipenv run ./manage.py $(ARGUMENTS)
doc-migrate:
docker exec -it api pipenv run ./manage.py migrate
doc-runserver:
docker exec -it api pipenv run ./manage.py runserver localhost:8100
doc-seed:
docker exec -it api pipenv run ./manage.py seedall
first-run:
docker exec -it api pipenv run ./manage.py migrate
docker exec -it api pipenv run ./manage.py seedall
docker exec -it api pipenv run ./manage.py create_test_data 10
doc-test:
docker exec -it api pipenv run ./manage.py test
manage:
./manage.py $(ARGUMENTS)
migrate:
./manage.py migrate
pip-manage:
pipenv run ./manage.py $(ARGUMENTS)
pip-migrate:
pipenv run ./manage.py migrate
pip-runserver:
pipenv run ./manage.py runserver localhost:8100
pip-seed:
pipenv run ./manage.py seedall
pip-test:
pipenv run ./manage.py test
runserver:
./manage.py runserver localhost:8100
secrets:
cp local.env .env
seed:
./manage.py seedall
start-e2e:
$(docker-base) up
stop-e2e:
$(docker-base) down --remove-orphans
test:
./manage.py test
rebuild-search:
docker exec -it api pipenv run ./manage.py search_index -f --rebuild