Deployment Runbook
Strategi Deploy (rekomendasi)
- Build artifact backend + frontend assets.
- Jalankan migration terkontrol.
- Restart worker queue.
- Health check endpoint kritikal.
Checklist Pre-Deploy
- Backup DB
- Backup file storage (
storage/app) - Review migration
fix/update/regenerateimpact - Validasi env vars (DB, mail, firebase, queue)
- Jalankan test minimal + lint
Langkah Deploy Backend
composer install --no-dev --optimize-autoloader
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan migrate --force
npm ci
npm run production
Queue Operations
php artisan queue:restart
# atau supervisor restart worker
Rollback Plan
php artisan migrate:rollback --step=1(hati-hati migration data patch).- Restore DB backup jika migration irreversible.
- Restore storage bila ada perubahan file penting.
Post-Deploy Validation
- Login admin berhasil.
- List SPB/PO/Pembayaran terbuka normal.
- Endpoint API login + list project OK.
- Queue memproses job tanpa gagal.
Catatan Verifikasi
- Status: Partial
- Scope: Pipeline CI/CD belum terdefinisi di repo; runbook saat ini prosedur manual.
- Action: Tambahkan lampiran jalur deploy per environment (manual vs pipeline) saat tersedia.