-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 913 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
all: up
build:
docker-compose -f docker-compose.yml build
up:
docker-compose -f docker-compose.yml up
stop:
docker-compose -f docker-compose.yml stop
restart:
docker-compose -f docker-compose.yml stop
docker-compose -f docker-compose.yml up -d
status:
docker-compose -f docker-compose.yml ps
clean:
docker-compose -f docker-compose.yml down
shell:
pipenv shell
run_backend:
cd ./backend && ./manage.py runserver 0.0.0.0:8000
run_frontend:
cd ./frontend && npm start
migrations:
cd ./backend && ./manage.py makemigrations && ./manage.py migrate
test_frontend:
cd ./frontend && npm install && npm test
test_backend:
export DJANGO_SETTINGS_MODULE=leia_backend.settings.testing && \
cd ./backend && coverage run --source='.' manage.py test && \
coverage report -m
urls_debug:
export DJANGO_SETTINGS_MODULE=leia_backend.settings.development && \
cd ./backend && python manage.py show_urls