-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (32 loc) · 990 Bytes
/
Makefile
File metadata and controls
48 lines (32 loc) · 990 Bytes
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
.PHONY: all test logs
all: build run
build:
vagrant ssh -c 'cd share/controller && sudo docker build -t deis/controller .'
install:
vagrant ssh -c 'sudo systemctl enable /home/core/share/controller/systemd/*'
uninstall: stop
vagrant ssh -c 'sudo systemctl disable /home/core/share/controller/systemd/*'
start:
vagrant ssh -c 'sudo systemctl start deis-controller.service'
stop:
vagrant ssh -c 'sudo systemctl stop deis-controller.service'
restart:
vagrant ssh -c 'sudo systemctl restart deis-controller.service'
logs:
vagrant ssh -c 'sudo journalctl -f -u deis-controller.service'
run: install restart logs
clean: uninstall
vagrant ssh -c 'sudo docker rm -f deis-controller'
full-clean: clean
vagrant ssh -c 'sudo docker rmi deis/controller'
test:
python manage.py test --noinput api web
runserver:
python manage.py runserver
db:
python manage.py syncdb --migrate --noinput
coverage:
coverage run manage.py test --noinput api web
coverage html
flake8:
flake8