Deploy Workflow
$ARGUMENTS ortamına deployment yapar.
Deployment Adımları
Pre-flight Checks
# Git durumu temiz mi? git status --porcelain # Doğru branch'te miyiz? git branch --show-currentRun Tests
npm testBuild
npm run buildDeploy
dev: Otomatik deploystaging: Otomatik deploy + smoke testprod: Manuel onay gerekli
Rollback
Hata durumunda:
git revert HEAD
npm run deploy:rollback
Checklist
- Testler geçti
- Build başarılı
- Environment variables kontrol edildi
- Database migration'lar çalıştı
- Health check OK