forked from Peer-Lab/mk42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (40 loc) · 1.71 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
# mk42
# Makefile
create-virtualenv:
virtualenv .env/`arch`
install-node:
cd tmp && curl http://nodejs.org/dist/node-latest.tar.gz | tar xvz && cd node-v* && ./configure --prefix=$(VIRTUAL_ENV) && make install && cd .. && rm -rf node-v*
pip-install:
pip install -r requirements/dev.txt
makemessages:
../dev-scp/messages.sh
compilemessages:
../dev-scp/messages.sh compilemessages
messages: makemessages compilemessages
runserver:
./manage.py runserver 0.0.0.0:8080 --settings=$(shell basename $(CURDIR)).settings.dev --traceback
celeryd:
./manage.py celeryd --settings=$(shell basename $(CURDIR)).settings.dev -l INFO --traceback --autoreload
migrate:
./manage.py migrate --settings=$(shell basename $(CURDIR)).settings.dev --traceback
makemigrations:
./manage.py makemigrations --settings=$(shell basename $(CURDIR)).settings.dev --traceback
static: collectstatic
collectstatic:
./manage.py collectstatic --settings=$(shell basename $(CURDIR)).settings.dev --traceback --noinput
compress:
./manage.py compress --settings=$(shell basename $(CURDIR)).settings.dev --traceback -f
shell:
./manage.py shell --settings=$(shell basename $(CURDIR)).settings.dev --traceback
dbshell:
./manage.py dbshell --settings=$(shell basename $(CURDIR)).settings.dev --traceback
merge-and-push-all:
git co master && git merge dev && git co dev && git push --all && git push --tags
clear:
../dev-scp/clear.sh && rm -rf tmp/index.html tmp/docs.zip
update-geoip-db:
cd tmp && wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz && gunzip GeoIP.dat.gz && mv GeoIP.dat ../data/GeoIP/GeoIP.dat
docs:
rst2html README.rst > tmp/index.html && zip tmp/docs.zip tmp/index.html
mail-server:
../dev-scp/mail-server.sh