Home/
openedx
/
Common Production Tasks
Also see https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack#updating-versions-using-edx-repos
As root
:
/edx/bin/update edx-platform release
- put up a ‘down for maintenance’ message
- make sure the original server is accessible to you (public must not be able to make changes); might need to close any existing connections
- take a snapshot using LXC (have to take down the server to do this); also verify that the snapshots can be restored if things go badly
- perform the upgrades
- verify that upgrades are working correctly
- remove the ‘down for maintenance’ message
- LATER: remove any snapshots once you’re sure that they’re not needed
- List LXC snapshots with
lxc-snapshot -L -n <container name>
On Devstack:
paver update_db -s devstack
In production:
ubuntu@edxprod:/edx/app/edxapp/edx-platform$ sudo -u www-data /edx/bin/python.edxapp ./manage.py lms migrate --settings=aws
comments powered by