forked from OWF/owf2014
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 887 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
.PHONY: all
SRC=website
test:
nosetests tests
run:
./manage.py serve
index:
rm -f whoosh_index/*
./manage.py index_content
all:
./manage.py build
clean:
rm -rf data/abilian.db
rm -rf build
rm -rf ./static/.webassets-cache
rm -rf *.egg *.egg-info
find . -name "*.pyc" | xargs rm -f
find . -name packed.js | xargs rm -f
find . -name packed.css | xargs rm -f
deploy:
ansible-playbook -i deployment/hosts -v deployment/server.yml
#push:
# rsync -e ssh -avz --exclude .git --exclude .tox \
# ./ dedi:owf2013/
fetch-db:
rsync -vz -e ssh dedi:websites/owf2013/data/abilian.db data/abilian.db
update-pot:
# _n => ngettext, _l => lazy_gettext
pybabel extract -F etc/babel.cfg -k "_n:1,2" -k "_l"\
-o $(SRC)/translations/messages.pot "${SRC}"
pybabel update -i $(SRC)/translations/messages.pot \
-d $(SRC)/translations
pybabel compile -d $(SRC)/translations