diff --git a/CHANGELOG.md b/CHANGELOG.md index 38d2b21..d6ee4ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Note: Breaking changes between versions are indicated by "💥". ## Unreleased +- [Feature] Make it possible to easily reload openedx gunicorn process with `tutor local exec lms reload-gunicorn`` - [Improvement] Rename lms/cms_worker to lms/cms-worker in local deployment - [Improvement] Add the management plugin to the rabbitmq container - [Improvement] Make it possible to run an Elasticsearch service on https diff --git a/docs/local.rst b/docs/local.rst index ca3718c..1180502 100644 --- a/docs/local.rst +++ b/docs/local.rst @@ -125,6 +125,13 @@ To update the course search index, run:: # Run this command periodically to ensure that course search results are always up-to-date. tutor local run cms ./manage.py cms reindex_course --all --setup +Reloading Open edX settings +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +After modifying Open edX settings, for instance when running ``tutor config save``, you will want to restart the web processes of the LMS and the CMS to take into account those new settings. It is possible to simply restart the whole platform (with ``tutor local reboot``) but that is overkill. A quicker alternative is to send the HUP signal to the gunicorn processes running inside the containers. The "openedx" Docker image comes with a convenient script that does just that. To run it, execute:: + + tutor local exec lms reload-gunicorn + .. _portainer: Docker container web UI with `Portainer `__ diff --git a/tutor/templates/build/openedx/bin/reload-gunicorn b/tutor/templates/build/openedx/bin/reload-gunicorn new file mode 100755 index 0000000..a587d81 --- /dev/null +++ b/tutor/templates/build/openedx/bin/reload-gunicorn @@ -0,0 +1,3 @@ +#! /bin/bash +echo "Reloading gunicorn process..." +kill -HUP $(pidof /openedx/venv/bin/python2 /openedx/venv/bin/gunicorn) \ No newline at end of file