On this page6
Part of how I change a live production site safely. By Mohammad Javad Dastouri, full-stack and AI engineer.
A change is not done because I say so. On the TFI PHP app, which runs a group of client websites, it must pass four automatic gates first. Any one of them can stop it.
At a glance
- Area
- Infrastructure and operations
- Applies to
- TFI PHP app, a custom website platform
- When
- After every piece of work, about 5 minutes
- Before a release
- The same gates, plus 7 full test installs, about 25 minutes
- Area
- Infrastructure and operations
- Applies to
- TFI PHP app, a custom website platform
- When
- After every piece of work, about 5 minutes
- Before a release
- The same gates, plus 7 full test installs, about 25 minutes
The four gates
1. Integrity
- What it asks
- Which files are the trusted ones?
- How
- Records the fingerprints of 1,360 files, so any later change shows up as tampering
2. Rule check
- What it asks
- Does the whole site still follow every rule?
- How
- About 60 groups of rules: colours, phone layout, security, structured data and receipts
3. Smoke test
- What it asks
- Is the live site up?
- How
- Opens the main pages at the public address
4. API self-test
- What it asks
- Does every API promise still hold?
- How
- 228 real calls, including writes and refused writes, and it cleans up after itself
1. Integrity
- What it asks
- Which files are the trusted ones?
- How
- Records the fingerprints of 1,360 files, so any later change shows up as tampering
2. Rule check
- What it asks
- Does the whole site still follow every rule?
- How
- About 60 groups of rules: colours, phone layout, security, structured data and receipts
3. Smoke test
- What it asks
- Is the live site up?
- How
- Opens the main pages at the public address
4. API self-test
- What it asks
- Does every API promise still hold?
- How
- 228 real calls, including writes and refused writes, and it cleans up after itself
Why they test the real site
A check that runs only inside the code can pass while the public site is broken. So the gates send real requests to the public address, as a visitor would.
They test the whole site, not just the part I changed. A small edit can break something far away.
When a gate said no
During one release, the rule check refused the version because of one line I had put in the wrong place. No client site received it. I moved the line and ran the gates again.
The same day, the API self-test failed on a check that could never have passed. The feature was right and the test was wrong. A gate can be wrong too, so a failure gets read, never waved through.
What the gates cannot prove
They run without a signed-in person. A real upload from a real staff screen still needs a human to try it, so I keep a short written script for those steps and count them as not proven until they are done.
Hiring someone to run production?
Tell me about the role, or go back to how I change a live production site safely.
- Section
- Infrastructure and operations
- Updated
- November 9, 2026
- Reading time
- 2 min read
Hiring for this kind of work?
Tell me about the role and I will reply by email.
Discuss a role with me
