icp/scripts/update-courses.sh

11 lines
303 B
Bash
Executable File

#!/usr/bin/bash
source /data/run/virtualenv/bin/activate
cd /data/src
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