Staging copies
Try changes on a copy of your site first. When they work, push them to the live site.
Make a copy
- Open the app and choose the Staging tab (under More).
- Check the Staging address. It starts as
staging.plus your live address. It can't be the live address or itswww.version. - Point that address at the same server in your DNS, like the live address.
- Check the Name of the staging app, then click Make staging copy.
The page shows the progress and a log under What happened. When the badge says Ready, open the staging address and try your changes there.
What the copy includes
- Copied: the app's files and its database. The copy lives on the same server, with its own address, Linux user, PHP version and database.
- Changed for staging: WordPress and Laravel settings point at the staging database and address. Laravel mail goes to the log. On WordPress, ServerNest turns off email, so the copy can't send orders or other mail to your customers.
- Not copied: cron jobs and workers, the page cache, HTTPS, backups, logs and sessions.
- Search engines are asked not to list the staging site.
HTTPS is off on the staging address at first. Turn it on from the staging app's Domains & HTTPS tab (see domains and HTTPS).
Other kinds of PHP apps may still send email from the copy. The page warns you when that's the case. It also warns you if ServerNest couldn't point the app's settings at the staging database. Then the copy would change your live data until you fix its settings.
Push to live
On the staging page, use the Push to live card. Choose what to push:
- Files. The live site keeps its own
wp-config.phpand.env, its logs and sessions. Files you deleted on staging stay on live. - Also add new uploads. New media files are added. Uploads already on live are never changed or deleted.
- Database. This replaces the whole live database. Orders, comments, sign-ups and other changes made on the live site since you made the copy are lost.
Tick I understand that this changes the live site and click Push to live. First ServerNest saves the live site's code and database as a restore point. If it can't, nothing is pushed. Afterwards it opens the live home page. If the site broke, the push is undone by itself. You can also undo it yourself with Undo push.
Remove the copy
Click Remove staging copy… and type the copy's name. This removes the staging app, its files and its database. The live app is not changed. You may be asked for your password again.
Good to know
- Each app can have one staging copy.
- The copy counts as a site, and its database as a database, on your plan. Staging has no extra plan limit.
- Owners, admins and developers can make a copy. Only owners and admins can push to live or remove the copy.
- Staging works for PHP apps, including WordPress and Laravel, on a connected server.
Not available yet: password protection for the staging address, a copy on another server, apps that deploy from Git (deploy a branch to a second app instead), apps with an outside database or more than one database, and Drupal or Joomla sites. There is no "refresh from live" button: to start over, remove the copy and make a new one.
Related: staging copy of a WordPress site by hand, move a site to another server, FAQ. Which plans include this: pricing.