Infinite | Squares

Art of code and more

Update Open edX Codebase

Open edX development is very active and its updated very often. You can update existing Open edX deployment to use the latest codebase.

Before we continue to update Open edX codebase, please make sure you have backup of current deployment settings file. In previous post I wrote about several methods you can use to customize your Open edX settings. All settings defined in JSON files and *.py will reset. Settings stored in server-vars.yml will still be exists. If you only use server-vars.yml then you’re good to go. The update process will not affecting your existing database.

SSH to your Open edX machine and do update

# sudo /edx/bin/update configuration release
# sudo /edx/bin/update edx-platform release

I experienced an error

error: invalid command 'egg_info'

which can be resolved easily by

# pip install --upgrade setuptools

After completed, do migrate for both LMS and CMS

# cd /edx/app/edxapp/edx-platform && sudo -u www-data /edx/bin/python.edxapp lms syncdb --migrate --settings aws
# cd /edx/app/edxapp/edx-platform && sudo -u www-data /edx/bin/python.edxapp cms syncdb --migrate --settings aws

And we are done. You have the latest Open edX code.