Deploy Workflow
$ARGUMENTS ortamına deployment yapar.
Deployment Adımları
- •
Pre-flight Checks
bash# Git durumu temiz mi? git status --porcelain # Doğru branch'te miyiz? git branch --show-current
- •
Run Tests
bashnpm test
- •
Build
bashnpm run build
- •
Deploy
- •
dev: Otomatik deploy - •
staging: Otomatik deploy + smoke test - •
prod: Manuel onay gerekli
- •
Rollback
Hata durumunda:
bash
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