-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathMakefile
36 lines (26 loc) · 1.16 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
all: setup
venv/bin/activate:
if which virtualenv-2.7 >/dev/null; then virtualenv-2.7 venv; else virtualenv venv; fi
run: venv/bin/activate requirements.txt
. venv/bin/activate; python manage.py runserver -h 0.0.0.0 -d -r
setup: venv/bin/activate requirements.txt
. venv/bin/activate; pip install -Ur requirements.txt
cd static && bower install
init: venv/bin/activate requirements.txt
. venv/bin/activate; python manage.py db upgrade
babel: venv/bin/activate
. venv/bin/activate; pybabel extract -F babel.cfg -o project/translations/messages.pot project
# lazy babel scan
lazybabel: venv/bin/activate
. venv/bin/activate; pybabel extract -F babel.cfg -k lazy_gettext -o project/translations/messages.pot project
# run:
# $ LANG=en make addlang
addlang: venv/bin/activate
. venv/bin/activate; pybabel init -i project/translations/messages.pot -d project/translations -l $(LANG)
updlang: venv/bin/activate
. venv/bin/activate; pybabel update -i project/translations/messages.pot -d project/translations
celery:
. venv/bin/activate; python celery_run.py worker
# celery in debug state
dcelery:
. venv/bin/activate; python celery_run.py worker -l info --autoreload