mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-25 22:18:24 +00:00
Add simple gunicorn reload script to openedx image
This commit is contained in:
parent
0325e7ad95
commit
00ec6930ae
@ -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
|
||||
|
@ -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 <https://portainer.io/>`__
|
||||
|
3
tutor/templates/build/openedx/bin/reload-gunicorn
Executable file
3
tutor/templates/build/openedx/bin/reload-gunicorn
Executable file
@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
echo "Reloading gunicorn process..."
|
||||
kill -HUP $(pidof /openedx/venv/bin/python2 /openedx/venv/bin/gunicorn)
|
Loading…
x
Reference in New Issue
Block a user