6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-11 17:38:46 +00:00

Fix incorrect settings during lms/cms init

During init, the DJANGO_SETTINGS_MODULE environment variable was
undefined, as the entrypoint is overridden.

Close #224.
This commit is contained in:
Régis Behmo 2019-06-23 15:47:30 +02:00
parent 8b6271a5cc
commit dda3614af5
2 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,10 @@
Note: Breaking changes between versions are indicated by "💥".
## Latest
- [Bugfix] Fix incorrect settings during lms/cms init (#224)
## 3.4.1 (2019-06-23)
- [Bugfix] Fix install from pypi

View File

@ -1,14 +1,14 @@
dockerize -wait tcp://{{ MYSQL_HOST }}:{{ MYSQL_PORT }} -timeout 20s
./manage.py lms migrate
./manage.py lms --settings=tutor.production migrate
./manage.py lms create_oauth2_client \
./manage.py lms --settings=tutor.production create_oauth2_client \
"http://androidapp.com" "http://androidapp.com/redirect" public \
--client_id android --client_secret {{ ANDROID_OAUTH2_SECRET }} \
--trusted
{% if ACTIVATE_NOTES %}
./manage.py lms manage_user notes notes@{{ LMS_HOST }} --staff --superuser
./manage.py lms create_oauth2_client \
./manage.py lms --settings=tutor.production manage_user notes notes@{{ LMS_HOST }} --staff --superuser
./manage.py lms --settings=tutor.production create_oauth2_client \
"http://notes.openedx:8000" "http://notes.openedx:8000/complete/edx-oidc/" confidential \
--client_name edx-notes --client_id notes --client_secret {{ NOTES_OAUTH2_SECRET }} \
--trusted --logout_uri "http://notes.openedx:8000/logout/" --username notes