-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.09 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
include app/.env
export
up:
docker-compose -f docker/docker-compose.yml up -d --build
down:
docker-compose -f docker/docker-compose.yml down
migrate:
docker-compose -f docker/docker-compose.yml exec web python manage.py makemigrations
docker-compose -f docker/docker-compose.yml exec web python manage.py migrate
create-admin:
docker-compose -f docker/docker-compose.yml exec web python manage.py createsuperuser
logs-web:
docker logs --tail 50 --follow --timestamps ${APP_NAME}
logs-db:
docker logs --tail 50 --follow --timestamps ${APP_NAME}_db
db-console:
docker-compose -f docker/docker-compose.yml exec db psql --username=${SQL_USER} --dbname=${SQL_DATABASE}
seed-db:
docker-compose -f docker/docker-compose.yml exec web python manage.py runscript seed_db
clear-db:
docker-compose -f docker/docker-compose.yml exec web python manage.py flush --noinput
test:
docker-compose -f docker/docker-compose.yml exec web python manage.py test
coverage:
docker-compose -f docker/docker-compose.yml exec web coverage report
coverage-erase:
docker-compose -f docker/docker-compose.yml exec web coverage erase