Configure the Preview button in Studio

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

NOTE: The properties PREVIEW_LMS_BASE and LMS_BASE must be configured with different domains. Otherwise, non-staff users won’t be able to see any course when navigating your site.

To enable content previews in Studio, you need to configure the Preview button. Follow these steps:

  • Make sure that you have a subdomain or a different domain pointing to your Open edX server.
  • Navigate to the installdir/apps/edx/conf directory.
  • Modify the lms.env.json and cms.env.json files and set PREVIEW_LMS_BASE to your alternative domain:

  • Restart all services running the commnand below:

    $ sudo installdir/ restart
Last modification April 8, 2020