Ep 8: Dev, staging and production
In one sentence: teams keep three copies of their app: dev to experiment, staging to rehearse, and production for real users.
| Environment | Restaurant version | Who uses it | What’s allowed |
|---|---|---|---|
| Dev | Test kitchen | Developers | Try anything, break things |
| Staging | Dress rehearsal | The team, testers | Final checks, as close to production as possible |
| Production | Real restaurant | Real customers | Only tested, approved changes |
Why not just test in production?
Section titled “Why not just test in production?”Because real users would see unfinished features, bugs and outages. Staging catches problems that only appear on real servers with real settings, before customers ever see them.
LoopNotes reads its environment name from a setting: APP_ENV=dev, staging or production, and shows it on screen.
A customer opens LoopNotes. Which one are they using? A) Dev B) Staging C) Production
Show answer
C) Production. Customers only ever use production. Dev and staging are for the team.