Open edX staging and production environments

A staging Open edX server that matches production lets you test configuration changes, release upgrades and plugins before learners see them. This page explains how to build it with Tutor and how to switch traffic between the two.

On this page

Why Open edX staging and production environments matter

A live learner platform cannot be the place where you find out whether a configuration change, a plugin update or a release upgrade works. Open edX staging and production environments give your team a second server that closely matches production, so changes can be applied, broken and repaired without learners, grades or certificates being affected. For Open edX, a staging server has three jobs: rehearsing configuration changes before they reach production, testing plugins and custom XBlocks against the release you actually run, and practicing the traffic switch between the old and new servers so that cutover is a routine step rather than a first attempt.

The maintainers point to running Open edX in production through a service provider or with Tutor, the official Docker-based distribution. Tutor is also the tool most teams use to build the staging server, because a staging instance deployed with the same Tutor version, plugins and configuration as production is far easier to trust than a hand-built copy. Confirm with your own deployment team which Tutor version and plugin set currently run in production, and record them so the staging server can be built from the same inputs.

Open edX states that the latest named release is the only supported release and that it cannot support more than one release at a time. That makes upgrade testing a recurring obligation, not a one-off project. The current named release is Open edX Verawood, and the next releases, Willow and Xylon, are listed for December 2026 and June 2027 in the release notes. Before each upgrade window, your team should be able to run the upgrade on staging, check your plugins and custom code against the new release, and confirm the rollback path. Ask any partner how staging will be kept in step with production over the life of the platform, not only at go-live.

Which staging layout fits which team

This is the most common starting point for a team running Open edX with Tutor on one or a few servers. Staging is a second host provisioned from the same configuration files and image versions as production, sitting in the same cloud account, network region and billing relationship. It is usually the cheapest way to get a matching environment, because the main recurring cost is a second set of compute, storage and backups, and the one-time cost is building the provisioning so both hosts are created the same way.

  • Cost drivers: Compute size, block storage, backup retention and outbound data transfer. Staging can often run on a smaller instance, but a smaller host changes performance and hides capacity problems.
  • Data handling: Staging should hold anonymized or synthetic learner data. Copying production databases to a shared account means learner records sit in a second place that needs the same access controls.
  • Drift risk: Manual changes made on production during an incident tend to never reach staging. Keep Tutor configuration in version control and apply every change to both hosts from the same source.
  • Shared account risk: Credentials, IAM roles and network rules often end up shared. Confirm that a staging compromise cannot reach production databases or object storage.
  • Confirm with the platform team: Which configuration lives in version control, how secrets are separated per environment, and who approves promotion from staging to production.

Before relying on this layout, confirm that the two hosts run the same Tutor and Docker versions and that DNS for staging points to a hostname learners never use.

How to build staging and switch traffic with Tutor

This sequence gives you a staging Open edX site that mirrors production closely enough to rehearse changes, test upgrades and plugins, and move live traffic between servers with a rollback path you have already tried.

  1. Confirm the version and inventory production

    Before building anything, the platform owner records the Tutor version, the Open edX release, every installed plugin, custom XBlock and theme, the enabled third-party identity providers, and the external services the site depends on, such as SMTP, object storage and the database hosts. Ask the team that operates production to confirm this list against the running containers rather than memory. Done means a written inventory that both the operator and the implementation partner have signed off, with exact version pins taken from the Tutor documentation at the time of the work.

  2. Provision a staging server on matching settings

    Build a separate server, or cluster for Kubernetes targets, using the same Tutor version, the same container engine and the same plugin set as production. Keep staging on its own hostname and its own identity provider client registrations so test logins cannot reach production accounts. Check that the staging LMS and Studio start cleanly from a fresh configuration. Done means both hosts report healthy services with identical version output for Tutor, the platform images and each plugin.

  3. Copy configuration and plugins from production

    Copy the production configuration file and plugin list into staging, then change only the values that must differ, such as hostnames, mail routing, SSO endpoints and secret keys, which should be regenerated for staging. Rebuild any custom images from the same source so that staging runs the same code. Done means a diff of the two configuration files contains only the intended differences, and the team can explain each one.

  4. Load a sanitized copy of production data

    Restore a recent production backup into staging's MySQL and MongoDB, then remove or replace learner personal data, email addresses, tokens, API keys and any uploaded files that contain personal information. Confirm your data handling rules with the privacy owner before restoring. Done means the staging database matches production's course and enrollment structure, the sanitization steps are written down and repeatable, and no real learner contact details remain.

  5. Rehearse the upgrade and run plugin tests

    Run the planned Open edX upgrade on staging first, following the release-specific upgrade guide and the Tutor documentation for that release. Then run the test suites for your custom XBlocks, themes and plugins against the upgraded platform, and check the Studio and LMS logs for new errors. Note every manual step and every failure. Done means the upgrade completes without data loss, every plugin test result is recorded, and the list of fixes needed before production is complete.

  6. Verify login, publishing, email and SSO

    Test the critical paths by hand with named test accounts for each role: learner enrollment, instructor login to Studio, publishing a course change, certificate or email delivery to a controlled inbox, and sign-in through each configured identity provider. Check that the staging identity provider returns the expected attributes and roles. Done means each path has a recorded pass with the date, the tester and the role used, and any failure has an owner and a fix.

  7. Plan the traffic switch and rollback path

    Decide how traffic moves between servers, either by changing DNS records with a lowered time-to-live set in advance, or by changing the backend in the load balancer or reverse proxy. Write the cutover runbook, including the data freeze window, the final backup, the health checks and the person who approves each step. Define the rollback: keep the old production stack intact and identify the exact action that points traffic back. Confirm TLS certificates for the target host before cutover. Done means the team has rehearsed the switch on staging, and the rollback has been run once and confirmed to restore service.

How traffic and changes move between staging and production

The change starts in a Git repository that holds the Tutor configuration and plugin list, which feeds a custom image build. The build is deployed to staging, where the upgrade, plugin, login and smoke test gates run against a server that matches production. Only when every gate passes does the load balancer or DNS record move traffic to the production server. The previous production server stays provisioned, so the same switch can return traffic to it if a check fails after cutover. Production and the previous server share one data store, so a rollback does not undo data written after cutover. Plan that boundary before any switch.

Changes move from Git through staging gates before traffic switches to production.

Protecting staging data and access

A staging server for Open edX is only useful if it looks like production, and that is exactly what makes it risky. The cards below cover the ways a copy of the platform can expose learner data, identity credentials, outbound messages or admin power that was meant for testing. Check each one before the first copy of production data or configuration reaches the staging host.

Copied learner data on a weaker server

A staging refresh from production copies learner names, emails, grades and certificate records, often onto a host that has fewer controls than production. Staging is usually used by more people, runs older packages and receives fewer patches. Decide whether learner data is needed at all, and if it is, anonymize or subset it before it leaves production. Confirm who can read the staging database and where its backups go.

Staging exposed to the internet

A staging LMS reachable from the public internet with default or shared admin accounts is a common way in. Search engines can index it, and learners can stumble into it. Restrict staging to your VPN, office network or an allow list, and put the Django admin and Studio behind the same controls as production. Confirm that the staging hostnames do not appear in public DNS or certificate transparency logs you do not intend to publish.

Test identity provider mixed with production

If staging points at the production identity provider, test accounts, role mappings and password resets can change real user access. If it points at a test provider, the test provider may have weaker controls. Give staging its own OAuth2, SAML or LTI registrations with separate client IDs, signing keys and redirect URLs. Confirm that a SAML metadata file or client secret copied for testing cannot authenticate against production.

Secrets copied between environments

Copying the production config.yml or env directory to staging carries over the secret key, database passwords, object storage keys and API tokens. Those values then exist in two places, and a leak from staging exposes production. Generate separate secrets for each environment and store them in your secrets manager. Confirm that no production secret appears in a staging plugin, a shared CI variable or a tutor config file committed to a repository.

Outbound email reaching real learners

A staging copy with live SMTP settings can send enrollment notices, password resets and certificate emails to real learners, which looks like a production incident. Point staging at a sandbox mail service or a sink that captures messages, and disable bulk or scheduled notifications. Confirm that the mail settings and any webhook or LTI callback URLs in staging point away from production learners and partner systems.

Testers who can also approve a switch

When the same person can test a release, change its configuration and flip traffic to the new server, nobody else reviews the change. Separate the roles: testers deploy and verify on staging, a second person approves the production change, and a named operator performs the traffic switch. Record who approved each switch and keep those permissions in your identity system, so access can be removed in one place when someone changes role.

Questions buyers ask about staging for Open edX

What does a staging environment for Open edX cost, and what drives it up or down?

The cost comes from two places: the people doing the setup and the infrastructure that runs the staging server. A fixed-scope quote is built from the written scope, so the main drivers are the number of servers that must mirror production, the volume of data and uploaded files you want to copy into staging, the number of plugins and custom XBlocks that must be installed and tested, and how many release upgrades you expect each year. More plugins and more data mean more configuration and more testing time. Ask for the quote to split one-time setup from recurring upkeep, and to state which infrastructure costs you pay directly to your cloud or data center provider.

How long does it take to build a staging environment for Open edX?

No duration is quoted here. The time depends on the scope: how many servers must match production, how many plugins and custom components need testing, whether the identity provider and DNS are ready to use, and whether the data copy is part of the work. The written scope and timeline agreed before work starts set the duration for your environment. Ask for the milestones in that document, including which items depend on your team, such as access approvals and test accounts from your identity provider.

What must our team provide before staging work can begin?

Your team should provide the following before the work starts:

  • Access to the cloud account, data center or hosts where staging will run, with rights to create servers, networks and storage.
  • Test details from your identity provider, such as a test application registration, metadata or client settings, and a few test user accounts.
  • Control of the DNS zone so a staging hostname can be created and certificates can be issued for it.
  • A named decision owner who approves the scope, signs off test results and decides when a release moves to production.

Missing any of these usually delays the schedule more than the technical work does.

Can our own team run Open edX staging with Tutor?

Yes, a team with Docker and operations skills can run staging with Tutor. Tutor is the official Docker-based Open edX distribution for production and local development, and the edx-platform maintainers recommend running Open edX through a service provider or with Tutor, because a bare-metal installation is complex and receives limited community support. The skills you need include container operations, Linux administration, DNS and TLS, database backups, and the ability to read release notes before each upgrade. If one of those skills is missing in your team, plan for it as part of the scope or the ownership model.

Does a staging environment need to run all the time?

Not always. A staging server that stays on is useful when you make frequent configuration changes, run automated checks, or need to test a plugin against each new Open edX release. A staging server that is started only for a planned change, upgrade or test window reduces infrastructure cost, but it adds setup time each time, and its data may drift from production. Decide this with your team based on how often you release changes and how quickly you need to verify them. Ask the provider to describe how the staging copy is refreshed from production and how its data is handled.

What is the difference between one-time setup and recurring upkeep for staging?

One-time setup covers the work that builds the environment: provisioning servers that match production, installing Tutor and your plugins, configuring DNS and certificates, connecting identity, and writing the procedure for copying data and switching traffic. Recurring upkeep covers the work that keeps it useful: applying operating system and container updates, refreshing data from production, testing each Open edX release and plugin update, keeping the switchover procedure current, and paying for the infrastructure while it runs. Ask for both lists in the quote, with the frequency of each recurring task stated.

How many Open edX upgrades per year should staging support?

The number depends on your release plan. Open edX states that the latest named release is the only supported release and that it cannot support more than one release at a time, so an upgrade path must be followed to stay supported. The current named release is Verawood, published on 30 July 2026, and the next releases, Willow and Xylon, are listed for December 2026 and June 2027. Each upgrade needs a staging test of the platform and every plugin you run, so the number of planned upgrades is a direct cost driver. Confirm the upgrade calendar with your team and the provider before the scope is written.

How do we confirm staging matches production before a switchover?

Staging only proves something if its configuration, versions and data shape match production. Compare the Tutor version, the plugin list, the environment settings and the container images between the two servers, and check that the identity provider and email settings point to test services in staging, not live ones. Run the same smoke tests on both before traffic moves, and keep a written rollback step that returns traffic to the previous server. Ask the provider to show how these checks are recorded and who signs off on them.

How staging changes release upgrade testing

Open edX supports only the latest named release, and the project states that it cannot support more than one release at a time. That means every production site has to move forward on a schedule, and the staging server is where the team rehearses each step before real learners and course teams are affected. Verawood is the current named release, published on 30 July 2026, and the next releases, Willow and Xylon, are listed for December 2026 and June 2027 in the Open edX release notes. Confirm the release dates against that page when you plan, because the schedule can change.

On staging, run the full upgrade path on a copy of production data: the Tutor version change, the image rebuilds for your custom XBlocks, themes and plugins, the database migrations and the post-upgrade checks on the LMS and Studio. Treat plugin compatibility as a separate test. A plugin that works on the current release can fail against the next one, and that failure should surface on staging, not during the production window. Record each failure, its fix and the time the step took, so the production runbook reflects what you actually saw.

The release-specific pages in the Open edX upgrades group cover the breaking changes, data migrations and deprecations for each named release, so use them as the checklist for each rehearsal. Before you start, confirm which release your production site runs today, which target release you are moving to, and who signs off on the cutover. Keeping staging on the same Tutor and image versions as production is what makes a rehearsal meaningful.

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Open edX built with Tutor. For staging and production, we scope a second environment that matches production closely enough to test configuration changes, release upgrades and plugins before they reach learners.

How we scope

  • Engagements are fixed-scope, with the staging environment, deliverables and timeline agreed in writing before work starts.
  • We inventory the production hosts, container engine, proxy, DNS names and Tutor plugins that staging must mirror.
  • We confirm which data is copied to staging, how it is anonymized, and who may access it.

How we build

  • We provision staging in infrastructure you control, using the same Tutor version and configuration sources as production.
  • We set up a repeatable process for copying configuration from staging to production and testing it before each change.
  • We test release upgrades and plugin changes on staging, and record the results and any fixes needed before production.

How we hand over

  • You receive runbooks for switching traffic between servers, rolling back a change and refreshing staging from production.
  • Documentation covers the environment inventory, configuration sources, access model and the test checklist for each release.
  • We walk your platform and operations teams through the handover so they can run staging without us.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after go-live.
  • Retainers can cover staging maintenance, release testing for each new named Open edX release, and plugin compatibility checks.
  • Ask for the support scope, response expectations and upgrade responsibilities in the written quote before you sign.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.