forked from recurship/event-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 769 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
.PHONY: up
APPS = event_manager organisation event user
NEWAPP = new_app
up:
docker-compose up
upnew:
docker-compose up --build
test:
docker-compose run web python manage.py test
coverage:
docker-compose run web python manage.py test --with-coverage
migrate:
docker-compose run web python manage.py makemigrations
docker-compose run web python manage.py migrate
loaddata:
docker-compose run web python manage.py loaddata db.json
dumpdata:
docker-compose run web python manage.py dumpdata > db.json
shell:
docker-compose run web python manage.py shell
superuser:
docker-compose run web python manage.py createsuperuser
newapp:
echo "Set $NEWAPP ENV as the name: make newapp NEWAPP=<NAME>"
docker-compose run web python manage.py startapp $(NEWAPP)