-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
27 lines (21 loc) · 961 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
run:
DJANGO_SETTINGS_MODULE=visorxml.settings.development PATH=$(abspath ./node_modules/.bin):${PATH} venv/bin/python visorxml/manage.py runserver
collectstatic:
npx grunt
DJANGO_SETTINGS_MODULE=visorxml.settings.development venv/bin/python visorxml/manage.py collectstatic --noinput --clear
compilelang:
cd visorxml && ../venv/bin/django-admin compilemessages
updatelang:
cd visorxml && ../venv/bin/django-admin makemessages -a
createlang:
cd visorxml && ../venv/bin/django-admin makemessages -l es -l gl -l ca -l eu
install:
python3 -m venv venv
venv/bin/python -m pip install wheel
venv/bin/python -m pip install -Ur requirements.txt
mkdir -p visorxml/media/
mkdir -p visorxml/served-static/
npm install
npx grunt
installpackages:
sudo aptitude install python3 python3-pip python3-venv python3-wheel nodejs npm poppler-utils gettext build-essential python3-dev libxml2-dev libxslt-dev libffi-dev zlig1g-dev libjpeg-dev libopenjp-2-7-dev