Commit 82e94dad by Daniel Clemente Committed by Jillian Vogel

Add flag EDXAPP_REINDEX_ALL_COURSES (reindex courses on deploy) (#4082)

Runs edxapp reindex_course when EDXAPP_REINDEX_ALL_COURSES is set.
parent 0f8b70de
......@@ -25,6 +25,9 @@
- Added `EDXAPP_PLATFORM_DESCRIPTION` used to describe the specific Open edX platform.
- Role: edxapp
- Added `EDXAPP_REINDEX_ALL_COURSES` to rebuild the course index on deploy. Disabled by default.
- Role: edxapp
- Added `ENTERPRISE_SUPPORT_URL` variable used by the LMS.
- Role: edxapp
......
......@@ -465,6 +465,9 @@ EDXAPP_COURSES_WITH_UNSAFE_CODE: []
EDXAPP_SESSION_COOKIE_DOMAIN: ""
EDXAPP_SESSION_COOKIE_NAME: "sessionid"
# Whether to run reindex_course on deploy
EDXAPP_REINDEX_ALL_COURSES: false
# XML Course related flags
EDXAPP_XML_FROM_GIT: false
EDXAPP_XML_S3_BUCKET: !!null
......
......@@ -428,3 +428,13 @@
tags:
- manage
- manage:db
- name: reindex all courses
shell: "{{ edxapp_venv_bin }}/python ./manage.py cms reindex_course --setup --settings={{ edxapp_settings }}"
args:
chdir: "{{ edxapp_code_dir }}"
become_user: "{{ common_web_user }}"
when: EDXAPP_REINDEX_ALL_COURSES
tags:
- install
- install:base
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment