master
Julian M. Kunkel 2018-05-06 15:19:28 +01:00
parent 551bbb6913
commit e5f4092476
2 changed files with 2 additions and 3 deletions

View File

@ -42,8 +42,7 @@ if [[ ! -e $V ]] ; then
cd /data/src
sed -i "s/'generated_exercises',/#'generated_exercises',/" main/settings.py
python3 ./manage.py migrate
sed -i "s/#'generated_exercises',/'generated_exercises',/" main/settings.py
echo yes | python3 ./manage.py collectstatic
sed -i "s/#'generated_exercises',/'generated_exercises',/" main/settings.py
mkdir /data/run/jobs/
chown www-data /data/run/jobs/

View File

@ -7,4 +7,4 @@ export GENERATED_PATH=/data/run/oer
export OER_SRC_DIR=/data/oer
export PLATFORM_PATH=/data/src
python3 ./manage.py import-courses --sources=/data/oer/courses --formats=/data/oer/exercise-formats/
python3 ./manage.py collectstatic
echo yes | python3 ./manage.py collectstatic