forked from jongman/algospot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (35 loc) · 1005 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
45
46
47
48
49
50
51
52
default: up
init:
git submodule update --init --recursive
ln -sf www/algospot/local_settings.py.dev www/algospot/local_settings.py
vagrant up
vagrant reload
ssh:
vagrant ssh
up:
vagrant up
halt:
vagrant halt
# some django commands
runserver:
vagrant ssh -c 'cd /vagrant/www; ./manage.py runserver 0.0.0.0:8000'
shell:
vagrant ssh -c 'cd /vagrant/www; ./manage.py shell_plus'
celeryd-console:
vagrant ssh -c 'cd /vagrant/www; sudo ./manage.py celeryd'
dbshell:
vagrant ssh -c 'cd /vagrant/www; ./manage.py dbshell'
collectstatic:
vagrant ssh -c 'cd /vagrant/www; ./manage.py collectstatic --noinput'
# restart daemons
restart-celeryd:
vagrant ssh -c 'sudo /etc/init.d/celeryd restart'
stop-celeryd:
vagrant ssh -c 'sudo /etc/init.d/celeryd stop'
start-celeryd:
vagrant ssh -c 'sudo /etc/init.d/celeryd start'
restart-uwsgi:
vagrant ssh -c 'sudo service uwsgi restart'
restart-nginx:
vagrant ssh -c 'sudo /etc/init.d/nginx restart'
.PHONY: default up stop halt devserver