ServerAvatarDocs
Applications

Staging

Make a private copy of a WordPress site, try changes on it, then push them to the live site or refresh the copy from live.

A staging copy is a private copy of a live site on a domain of its own. You change the copy, check it, and then push the changes to the live site. Staging is for WordPress sites. Open the application, then select Staging in its sidebar, under Backups & copies. The screen says "A copy of this application you can break without anyone noticing."

Only WordPress sites list Staging in the sidebar. If you open the address on a site of another type, the screen shows the card Staging is for WordPress sites ("Staging copies are available for WordPress sites."). A staging copy itself opens the card This is a staging copy: "It was made from a live site, so it has no staging copy of its own. Push it to live, or update it from live, on the live site." Select Open the live site to go back to the live site's Staging screen.

A site has one staging copy at a time. The copy is an application of its own: it is listed with the name name (Staging), has its own screens and counts as one more application on a Control Panel customer's application limit.

Create a staging copy

  1. Open the live site's Staging screen. Without a copy it says "No staging copy yet" and "Try changes on a private copy of the site first, then push them to the live site."

    The Staging screen of a WordPress site with no staging copy, showing the Create staging copy button

  2. Select Create staging copy.

    The Create staging copy dialog with the Staging domain field filled in and the note that copying the whole site can take several minutes

  3. Check the Staging domain. It starts as staging. followed by the live domain, for example staging.blog.example.com. Change it if you want another address. Point the domain at this server first, or the copy can't be reached: "Point this domain at this server first, or the copy can't be reached."

  4. Select Create staging copy. The button shows Creating…. "This copies the whole site and can take several minutes."

When the dialog closes, the Staging screen shows the copy as one card: its name with a status badge, the domain, "Copy made time ago" and the PHP version. While it is still being made the card says "Creating the staging copy…" and the page checks it again every few seconds until it is ready or has failed.

Select Open staging site to open the copy's own application screens, or select the domain to open the site in a new tab.

Update staging from live

Use this to start again from the current live site. The live site is only read and stays online.

  1. On the card Copy live over staging, select Update staging from live. The card says "Replaces staging with what is on live domain now. The live application is only read and stays online."
  2. Under What to copy, choose Files only, Database only or Files and database (the default).
  3. Read the warning: "This replaces the staging site's what with the live site's. Changes made only on staging will be lost (a copy of staging is saved first)."
  4. Select Replace staging. The dialog shows "Copying… this can take a few minutes. Keep this window open." The card then shows "Updating staging from domain (what)…"; it goes on if you leave the page. When the copy ends you see "Staging was updated from the live site.", or Updating staging failed. The card then says when staging was last updated from live.

Push staging to live

  1. On the card Copy staging over production, select Push to live. The card says "Replaces live domain with what is on the staging application. File changes can't be undone. A database push saves the live database first, so it can be put back."

    The Push to live dialog with What to copy set to Files and database and the warning that the live site is offline for a moment

  2. Under What to copy, choose Files only, Database only or Files and database (the default).

  3. Read the warning: "This replaces the live site's what with the staging copy's. The live site is offline for a moment; a copy of it is saved first and put back if anything fails."

  4. Select Push to live. The card shows "Pushing staging to domain (what)…" and "This can take a few minutes. It goes on if you leave this page; a message says when it's done." When it ends you see "Staging was pushed to the live site.", or Push to live failed.

A push replaces live data. A files push cannot be undone, and it makes the live files match the staging files, so a file that exists only on the live site is removed. A push that includes the database saves the live database first (see Database safety copies).

The two buttons show only when the copy is ready and you have Manage access. If creating the copy failed, the card says: "This staging copy isn't ready: creating it failed. If it stays like this, delete it and create it again."

Push and update run on the server in the background. The dialog checks them every 2.5 seconds and waits up to 30 minutes. If it can't confirm that the job ended, it shows an error. The job itself keeps running on the server, so reload the page and check the site before you start another one.

The Staging screen with a staging copy: the copy card with Open staging site, the Update staging from live and Push to live rows, and the Delete staging card

Restore a database safety copy

Before each database push the server saves the live database. The Database safety copies card lists these copies: "Saved before each database push. The newest 3 are kept." Each row shows the file name (it starts with pre-push- and ends with .sql), its size and its date. The card shows only when there is at least one copy.

  1. On the copy you want, select Restore.
  2. Read the question: "Put name back into the live database? The current database is saved first, so you can undo this."
  3. Select Restore. You see "The live database was restored."

A site with no database linked to it cannot restore a copy: "This application has no database linked to it, so there is nothing to put the copy back into."

Delete the staging copy

  1. At the end of the screen, on the card Delete staging, select Delete staging. The card says "Deletes the staging site domain. live domain is not touched."
  2. In the Delete application dialog, type the name when asked. The copy's files, backups and database are ticked for deletion from the start, because they belong only to the copy.
  3. Confirm. The screen stays and shows "No staging copy yet" again.

The dialog is the same one used for any application. See Delete an application.

Limits

  • Staging domain: up to 253 characters. Letters, digits and inner hyphens in each label, and a top-level domain of 2 to 63 letters. Central trims it and changes it to lowercase.
  • One staging copy per live site. A staging copy cannot have a staging copy.
  • Creating a copy, push, update and restoring a safety copy are limited to 5 per minute on the server's panel.
  • The newest 3 database safety copies are kept.
  • The server checks that there is free disk space first, for the copy, for the files set aside during a push and for the safety copy.

Who can do this

  • Seeing Staging needs View on Staging Area (application.staging). Creating the copy, Update staging from live, Push to live and Restore need Manage. With view only the screen says "You need manage access to Staging to change this."
  • Delete staging needs Manage on Application (application), because the copy is deleted as an application.
  • Staging Area can be given in a server share. Clone has its own permission. See Clone.
  • Each action is recorded in the server's activity log. See Application activity.

Common errors

  • This application already has a staging copy. Push it or delete it first. The site already has a copy. Open it from this screen.
  • This is a staging copy. Make staging copies from the live application. You tried to make a copy of a copy.
  • A push to this application is already running. Wait for it to finish. A push or update, or a restore of the site, is still running. Wait and try again.
  • Creating the staging site failed at the "step" step (reference code). The copy could not be made. Give the reference to support, delete the broken copy and try again.
  • Not enough free disk space on the server: this needs about size and only size is free to use. Free up space and try again. Free disk space, for example with the disk cleaner.
  • The staging push failed and production could not be restored. The application remains disabled. Quote the reference to support. Do not retry on your own.
  • That copy of the database is not on the server any more. Reload the list. The safety copy was removed. Reload the page.

On this page