This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
82 lines (61 loc) · 1.52 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
NAME := spare
.PHONY: up
up:
docker-compose -p ${NAME} up -d
.PHONY: build
build:
docker-compose -p ${NAME} build
.PHONY: stop
stop:
docker-compose -p ${NAME} stop
.PHONY: down
down:
docker-compose -p ${NAME} down
.PHONY: shell
shell:
docker exec -it ${NAME}_server_1 /bin/bash
.PHONY: shell_plus
shell_plus:
docker exec -it ${NAME}_server_1 python manage.py shell_plus
.PHONY: serve
serve:
docker exec -it ${NAME}_server_1 python manage.py runserver 0.0.0.0:8000
.PHONY: migrate
migrate:
docker exec -it ${NAME}_server_1 python manage.py migrate
.PHONY: migrations
migrations:
docker exec -it ${NAME}_server_1 python manage.py makemigrations
.PHONY: superuser
superuser:
docker exec -it ${NAME}_server_1 python manage.py createsuperuser
.PHONY: get_started
get_started:
docker exec -it ${NAME}_server_1 python manage.py get_started --no-migrations
.PHONY: init
init: migrate get_started
.PHONY: reset_db
reset_db:
docker exec -it ${NAME}_server_1 python manage.py reset_db
.PHONY: tests
tests:
docker exec -it ${NAME}_server_1 ./scripts/run_tests.sh
.PHONY: update
update: update.server update.client
.PHONY: update.server
update.server:
docker exec -it ${NAME}_server_1 pip install -r requirements/local.txt
.PHONY: install
install:
docker exec -it ${NAME}_client_1 npm install
.PHONY: update.client
update.client: install
.PHONY: shell.client
shell.client:
docker exec -it ${NAME}_client_1 /bin/bash
.PHONY: client
client:
docker exec -it ${NAME}_client_1 npm run start
.PHONY: clean
clean:
rm -rf client/node_modules/