A checklist before pushing staging changes live
Go through this list on the copy before you touch the real site. Most items take a minute. Skip one and you may be fixing the live site in front of visitors.
What to look at on the copy
The change itself
- Does the thing you changed work, on a phone-sized screen as well as a desktop?
- Do the pages around it still look right? Check the menu, the home page and one page of each type.
- Are there broken links, missing pictures or odd layouts?
- Did you write down every change you made, including ones in the dashboard? You'll need that list later.
Forms, shop and email
- Do forms send their messages, and to the right place?
- Did test orders or sign-ups behave? Kinsta warns that test orders on a staging site can send related emails.1
- Have you used test details only, never a real customer's?
Plugins and add-ons
- Does each plugin you updated or added still work?
- Does any plugin post to social media or other outside services? Kinsta says1 "it is recommended that you deactivate these plugins on your staging site" for scheduling plugins, or they may share links using the staging address.
- Does any plugin tie its licence to a domain name? Kinsta notes1 "Plugins licensed by domain name may require a custom domain" to work properly on staging. If a plugin looks broken, check this first.
Settings that may not match
- Redirects, certificates and server rules set in your host's panel may not exist on the copy. WP Engine says some of its own host settings aren't carried over by its copy tool.2 Redirects are on that list.
- So a page that works on the copy might still lack a redirect on the live site, or the reverse. Check the live site's host panel too.
What to check on the live site before you push
Back up
- Make a backup of the live site now. The WordPress handbook advises a backup before any upgrade.3
- Know how to restore it. The same page says3 "With a proper backup of your WordPress database and files, you can quickly restore things back to normal."
Find out what changed on live
- Have new orders, comments, users or posts arrived since you made the copy? A database push can replace them. The page on how a push works explains why.
- If you've only changed design files, a files-only push may be enough. Kinsta lets you push files without the database.1 That works only when you changed nothing in the dashboard.
- If you did change settings in the dashboard, you may need to repeat them by hand on the live site, or push selected tables. Ask a developer if you're unsure.
Visibility
- Is the live site's search visibility on? In WordPress, the Reading screen has a box that4 "ask search engines not to index this site" when it's ticked. Make sure it isn't ticked on live.
- Is any password protection from the copy missing from live? It should be.
Pick a time and a way back
- Choose a quiet period for the push, if your traffic has one.
- Decide in advance how you'll undo the change. Restoring the backup is one way. Putting the old files back is another.
- Tell anyone else who edits the site not to change anything until you're done.
After the push
- Load the live site while logged out and visit the pages you changed.
- Run through the same form, checkout and login tests you did on the copy, using test details only.
- Search your own site for the address of the copy. Links to it shouldn't be on the live pages.
- Check that the live site can be found by search engines and isn't asking for a password.
For locking the copy away from search engines, see the page on privacy for a test copy. To see which parts a clone skips, read what's inside a staging copy.
Reference list
- Staging Environments, Kinsta
- Sites and environments, WP Engine
- Backups, WordPress Advanced Administration Handbook
- Settings Reading Screen, WordPress.org documentation
