Staging and Production Sites: A Safe Workflow for Any Website
Test changes on a copy first, then publish them, so visitors never see broken work.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
The routine
- Back up the live site.
- Copy it to a staging address (a subdomain with a password and noindex).
- Make and test the change there.
- Compare results. Test forms, checkout and mobile view.
- Apply the same change to live, at a quiet time.
- Test live and watch for errors.
- Keep the backup until you are sure.
Rules
- Keep staging out of search results.
- Do not send real emails from staging.
- Use test payment mode.
For WordPress steps, see a staging site.
Related guides
- WordPress: Clone a Site to a Subdomain for Testing
- Rollback Plan: How To Undo a Change in 5 Minutes
- Restore One File or One Database Table From a Backup Without Rolling Back Everything
- phpMyAdmin Import Fails: File Too Large or Script Timed Out
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.