forked from ocadotechnology/rapid-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run
executable file
·35 lines (31 loc) · 839 Bytes
/
run
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
#!/bin/bash
set -e
cd "${BASH_SOURCE%/*}"
translation=
while [ "$1" != "" ]; do
case $1 in
--with-translation-tools )
translation=1
;;
* )
exit 1 # unknown option
;;
esac
shift
done
pip install -e .
pip install 'codeforlife-portal >= 1.0.0.post.dev1' # TODO: Remove this requirement (#688)
./example_project/manage.py migrate --noinput
# Translation/Localisation
if [ "$translation" = "1" ]; then
pip install 'crowdin-cli-py'
cd game
mkdir -p locale
django-admin makemessages -l en_GB --no-wrap
# some files from foundation use '_' for their own purpose
django-admin makemessages -l en_GB --no-wrap -d djangojs --ignore "static/game/js/foundation/*"
cd -
./.crowdin-get-translations
fi
./example_project/manage.py collectstatic --noinput
./example_project/manage.py runserver "$@"