6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-17 02:25:10 +00:00

Fix incorrect django settings during CMS init

This commit is contained in:
Régis Behmo 2019-11-22 09:25:29 +01:00
parent c89a5d3c3a
commit fbafd1c301

View File

@ -1,4 +1,9 @@
dockerize -wait tcp://{{ MYSQL_HOST }}:{{ MYSQL_PORT }} -timeout 20s && ./manage.py cms migrate
dockerize -wait tcp://{{ MYSQL_HOST }}:{{ MYSQL_PORT }} -timeout 20s
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py cms migrate
# Fix incorrect uploaded file path
if [ -d /openedx/data/uploads/ ]; then