forked from Juriy/swapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (35 loc) · 1.33 KB
/
Makefile
File metadata and controls
48 lines (35 loc) · 1.33 KB
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
install:
pip install -r requirements.txt
build:
python manage.py migrate
python manage.py createsuperuser
load_data:
python manage.py loaddata planets.json
python manage.py loaddata people.json
python manage.py loaddata species.json
python manage.py loaddata transport.json
python manage.py loaddata starships.json
python manage.py loaddata vehicles.json
python manage.py loaddata films.json
serve:
python manage.py runserver
dump_data:
python manage.py dumpdata resources.planet > resources/fixtures/planets.json --indent 4
python manage.py dumpdata resources.people > resources/fixtures/people.json --indent 4
python manage.py dumpdata resources.species > resources/fixtures/species.json --indent 4
python manage.py dumpdata resources.starship > resources/fixtures/starships.json --indent 4
python manage.py dumpdata resources.vehicle > resources/fixtures/vehicles.json --indent 4
python manage.py dumpdata resources.transport > resources/fixtures/transport.json --indent 4
python manage.py dumpdata resources.film > resources/fixtures/films.json --indent 4
drop_db:
python manage.py flush
test:
python manage.py test
clear_cache:
python manage.py clear_cache
docker-build:
docker build -t swapi .
docker-run:
docker run -p8000:8000 --name swapi-local-container --rm swapi
docker-kill:
docker kill swapi-local-container