-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (28 loc) · 1 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
build:
docker-compose -f local.yml build
run:
docker-compose -f local.yml up
migrate:
docker-compose -f local.yml run --rm django python manage.py migrate
makemigrations:
docker-compose -f local.yml run --rm django python manage.py makemigrations
makemessages:
docker-compose -f local.yml run --rm django python manage.py makemessages -l es -i venv
compilemessage:
docker-compose -f local.yml run --rm django python manage.py compilemessages -l es -i venv
createsuperuser:
docker-compose -f local.yml run --rm django python manage.py createsuperuser
train:
docker-compose -f local.yml run --rm django python manage.py train
load_imdb:
docker-compose -f local.yml run --rm django python manage.py update_db --new True
load_ratings:
docker-compose -f local.yml run --rm django python manage.py load_ratings
quickstart:
make migrate
make load_imdb
make load_ratings
shell:
docker-compose -f local.yml run --rm django python manage.py shell
django-bash:
docker exec -it pemors_local_django /bin/bash