-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (26 loc) · 822 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
VIRTUAL_ENV?=".."
UWSGI_INI?="../uwsgi.yaml"
debug:
./manage.py runserver 0.0.0.0:8000
install_requirements:
$(VIRTUAL_ENV)/bin/pip install -r requirements.txt
pull:
git pull
upgrade: pull install_requirements update_static compress optimize_js update_db restart
compress:
$(VIRTUAL_ENV)/bin/python manage.py compress --force
update_static:
rm static -rf
$(VIRTUAL_ENV)/bin/python manage.py collectstatic -l --noinput
$(VIRTUAL_ENV)/bin/python manage.py compress --force
update_db:
$(VIRTUAL_ENV)/bin/python manage.py syncdb --noinput
$(VIRTUAL_ENV)/bin/python manage.py migrate
optimize_js:
r.js -o name=main out=static/js/main-built.js baseUrl=static/js
create_admin:
$(VIRTUAL_ENV)/bin/python manage.py create_admin
init: init_db create_admin
init_db: update_db
restart:
touch $(UWSGI_INI)