-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmakefile
More file actions
47 lines (33 loc) · 726 Bytes
/
makefile
File metadata and controls
47 lines (33 loc) · 726 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
45
46
47
ifneq (,$(wildcard ./.env))
include .env
export
ENV_FILE_PARAM = --env-file .env
endif
build:
docker-compose up -d --build --remove-orphans
up:
docker-compose up
down:
docker-compose down
down_v:
docker-compose down -v
logs:
docker-compose logs
app_logs:
docker-compose logs app
db_logs:
docker-compose logs db
migrate:
docker-compose exec app python manage.py migrate --noinput
makemigrations:
docker-compose exec app python manage.py makemigrations
shell:
docker-compose exec app python manage.py shell
superuser:
docker-compose exec app python manage.py createsuperuser
test:
docker-compose exec app python manage.py test
prune:
docker system prune
enter_app:
docker exec -it demo_app bash