Staging vs production environment: four copies of a site, four jobs
Last reviewed
Development, staging, sandbox and production: four copies, four jobs.
Production is the live website your customers use. Staging is a private copy kept as close to production as possible, used for a final check before changes go live. Development is where the work is built, often on a developer's own computer. A sandbox is a test mode, usually of a payment, email or booking service, where nothing counts for real. Problems start when a setting from one leaks into another.
Why mixed-up environments cost you customers
Each environment is set up to behave differently on purpose. Staging hides from Google, development sends no real email, and a sandbox payment never charges a card. Carry one of those settings onto the live site and it keeps doing its quiet job there: the checkout takes test payments that never reach your bank, the form emails a developer's test inbox, or the live site asks search engines to ignore it. Nothing looks broken, which is why it can run for weeks.
How test and live settings get crossed
- A copy of the staging site was launched exactly as it was, settings and all
- Payment or booking keys from a sandbox account were pasted into the live site's settings
- The form recipient was switched to a developer's address for testing and never switched back
- A staging copy stayed connected to the real mailing list or CRM, so test messages reached real customers
- Development and live sites share one database or one set of passwords, so a change in one lands in the other
How to check which settings your live site is using
- Make a small real purchase or booking on your live site, then refund or cancel it. If your payment account never shows the charge, the site may still be using sandbox keys.
- Send a message through the live contact form and confirm it reaches your own inbox rather than a developer's.
- Look at the address bar on each copy you have been sent. The live site should be on your own domain, while staging and development usually carry staging, dev or the host's name in the address.
- Ask your developer for a one-line list of every copy of the site: its address, what it is for and whether it needs a password to open.
How to keep each environment separate
- Have your developer keep a written list of the settings that must differ between staging and live: payment keys, form recipients, email sending, analytics and search visibility.
- Ask them to switch every service on the live site to its live mode and live keys, and to confirm each one with a real test after launch.
- Keep staging connected to sandbox accounts and test inboxes only, so nothing done there can charge, email or message a real customer.
- Use separate passwords and separate databases for staging and live, so an experiment on one cannot change the other.
- Add the settings list to your launch checklist, so it is gone through every time a staging copy becomes the live site.
How Prsona handles each environment
With the Staging add-on, staging and sandbox addresses sit on their own tab and are audited with pre-launch rules, apart from your live sites. Live sites keep their usual scheduled checks, so a noindex or robots.txt block that reaches the live address is reported as a real problem.
Prsona audits staging and sandbox sites as part of a staging site audit.
Audit your staging and sandbox sites on their own tab, away from your live numbers.
Questions about website environments
Is a sandbox the same thing as staging?
Not quite. Staging is a full copy of your website used for a final check. A sandbox is usually a test mode inside a service, such as a payment provider or booking system, where transactions look real but nothing is charged or sent. A staging site normally connects to sandbox accounts, and the live site to the real ones.
Do I need all four environments?
No. Many small business sites run well with two: the live site and one staging copy. Development can happen on staging or on the developer's computer, and sandboxes come with the services you already use. What matters is that test settings never reach the site customers use.