generaledx

Run commands

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

Depending on the application you want to manage (edX Platform or XQueue), there is a list of scripts available to run these commands with a pre-configured environment for the application. The available scripts for each application are described below.

Approach A: Bitnami installations using system packages

edX Platform

Paver and Python commands are located in the /opt/bitnami/edx/app/edxapp/venvs/edxapp/bin directory.

For example, to update your database using Python, you will need to execute these commands as root:

$ cd /opt/bitnami/edx/app/edxapp/edx-platform
$ source ../edxapp_env
$ /opt/bitnami/edx/app/edxapp/venvs/edxapp/bin/python ./manage.py lms migrate --settings bitnami
$ /opt/bitnami/edx/app/edxapp/venvs/edxapp/bin/python ./manage.py cms migrate --settings bitnami

XQueue

The Python and django-admin and executables for XQueue are located in the /opt/bitnami/edx/app/edxapp/app/xqueue/venvs/xqueue/bin directory.

For example, to update your database using django-admin, you will need to execute these commands as root:

$ source /opt/bitnami/edx/app/xqueue/xqueue_env
$ /opt/bitnami/edx/app/edxapp/app/xqueue/venvs/xqueue/bin/django-admin migrate --pythonpath=/opt/bitnami/app/xqueue/xqueue

Approach B: Self-contained Bitnami installations

edX Platform

Paver and Python commands are located in the /opt/bitnami/apps/edx/bin directory.

For example, to update your database using Python, you will need to execute these commands:

$ sudo /opt/bitnami/apps/edx/bin/python.edxapp ./manage.py lms migrate --settings bitnami
$ sudo /opt/bitnami/apps/edx/bin/python.edxapp ./manage.py cms migrate --settings bitnami

XQueue

The Python and django-admin and executables are located in the /opt/bitnami/apps/xqueue/bin directory.

For example, to update your database using django-admin, you will need to execute these commands:

$ sudo /opt/bitnami/apps/xqueue/bin/django-admin.xqueue migrate --settings xqueue.bitnami_settings
Last modification November 10, 2021