Hotfix Workflow
Emergency fix process for production issues.
When to Useβ
- Critical production bug affecting users
- Security vulnerability discovered
- Data integrity issue
Processβ
Stepsβ
1. Create Hotfix Branchβ
git checkout main
git pull
git checkout -b hotfix/issue-description
2. Implement Fixβ
- Focus on the minimal fix only
- No refactoring or feature additions
- Add a regression test
3. Testβ
yarn test
yarn test:e2e # if time permits
4. Deployβ
# Fast-track PR review
# Merge to main
# CI/CD auto-deploys to production
5. Backportβ
git checkout develop
git merge hotfix/issue-description
git push
6. Post-Mortemβ
| Item | Detail |
|---|---|
| Root cause | Why did this happen? |
| Detection | How was it found? |
| Impact | How many users affected? |
| Fix | What was changed? |
| Prevention | How to prevent recurrence? |
Related Pagesβ
- Release Management β releases
- Incident Response β incident handling
- Git Workflow β branching