-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (36 loc) · 924 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# DOCKER COMMANDS for relar development environment
setup:
poetry install
docker-compose up --build
up:
docker-compose up
up-rebuild:
docker-compose up --build --force-recreate
stop:
docker-compose stop
start:
docker-compose start
restart:
docker-compose restart
down:
docker-compose down -v --rmi 'local'
shell:
docker-compose exec databrary /bin/bash
django-shell:
docker-compose exec databrary poetry run python manage.py shell
# local-COMMANDS for standalone project out with containers
serve:
export DJANGO_SETTINGS_MODULE=databrary.settings.alone
poetry run python manage.py runserver
make-migrations:
poetry run python manage.py makemigrations
migrate:
poetry run python manage.py mirate
# TESTS
pre-commit:
poetry run pre-commit run --all-files
test:
docker-compose exec databrary poetry run coverage run ./manage.py test
test-coverage:
$(MAKE) test
poetry run coverage report -m