2 min read · Websites and web apps

Staging is used to check work before release, while Production serves real users and real data. Separating the environments lets you experiment without side effects on customers, but you still need to check the differences in settings and supporting services.
How to start
Separate the database, service accounts, email destinations and analytics as appropriate. Set up checklists for content, functions, permissions and database changes, along with the approver and the conditions for rolling back.
Steps and checklist
- Separate the roles of development, staging and production.
- Define the test data and the external services that must be kept separate.
- Set up checks for content, functions and permissions.
- Plan database changes and any backups that are needed.
- Define the release criteria, the post-release check and the rollback.
- Manage preview URLs so they are not published in the wrong place.
Example
Hypothetical example: a form tested on staging should send to a test destination and should not create real leads or real emails.
Checking the result and what to review
After release, check the key items again, because passing on Staging does not mean it is the same as Production in every respect. Do not use real customer data as test data without considering it and getting clear permission.
Benefits
It lets you check work before it affects users, and you know how to roll back when something goes wrong.
Limits and cautions
- Staging may not match production in every respect.
- Do not use real customer data without assessing it and getting permission.




