generated from Joeriksson/django-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (26 loc) · 749 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
dev:
@docker-compose \
-f docker-compose-dev.yml \
down && \
docker-compose \
-f docker-compose-dev.yml \
up -d
dev_build:
@docker-compose \
-f docker-compose-dev.yml \
down && \
docker-compose \
-f docker-compose-dev.yml \
up -d --build
dev_logs:
@docker-compose -f docker-compose-dev.yml logs
dev_down:
@docker-compose -f docker-compose-dev.yml down
dev_web_exec:
@docker-compose -f docker-compose-dev.yml exec web $(cmd)
dev_test:
@docker-compose -f docker-compose-dev.yml exec web python manage.py test --settings=project.settings.development
prod:
@docker-compose -f docker-compose-prod.yml down && docker-compose -f docker-compose-prod.yml up -d
prod_down:
@docker-compose -f docker-compose-prod.yml down