-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 1.33 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
42
.PHONY: build-dev build-prod test up-dev up-prod down-dev down-prod
build:
@docker compose -f docker-compose.dev.yml build
@docker compose -f docker-compose.dev.yml up -d
build-prod:
@docker compose -f docker-compose.prod.yml build
@docker compose -f docker-compose.prod.yml up -d
test:
@docker compose -f docker-compose.dev.yml run --rm web pytest
cov:
@docker compose -f docker-compose.dev.yml run --rm web coverage run -m pytest
makemessages:
@docker compose -f docker-compose.dev.yml run --rm web python manage.py makemessages -l en
@docker compose -f docker-compose.dev.yml run --rm web python manage.py makemessages -l fr
@docker compose -f docker-compose.dev.yml run --rm web python manage.py makemessages -l es
makemigrations:
@docker compose -f docker-compose.dev.yml run --rm web python manage.py makemigrations
@docker compose -f docker-compose.dev.yml run --rm web python manage.py migrate
makecompile:
@docker compose -f docker-compose.dev.yml run --rm web python manage.py compilemessages
up:
@docker compose -f docker-compose.dev.yml up -d
up-prod:
@docker compose -f docker-compose.prod.yml up
down:
@docker compose -f docker-compose.dev.yml down
down-prod:
@docker compose -f docker-compose.prod.yml down
refresh-db:
@if [ -n "$(shell docker volume ls -q)" ]; then docker volume rm $(shell docker volume ls -q); fi