Deployment Runbook
Deploy Strategy (recommendations)
- Build backend artifacts + frontend assets.
- Run a controlled migration.
- Restart worker queue.
- Health check critical endpoints.
Pre-Deploy Checklist
- DB Backup
- Backup storage files (
storage/app) - Review migration
fix/update/regenerateimpact - Validate env vars (DB, mail, firebase, queue)
- Run minimal + lint test
Backend Deploy Steps
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(carefully migrate patch data).- Restore DB backup if migration is irreversible.
- Restore storage if there are changes to important files.
Post-Deploy Validation
- Admin login successful.
- List of SPB/PO/Open payments normally.
- Endpoint API login + project list OK.
- Queue processes jobs without failure.
Verification Notes
- Status: Partial
- Scope: CI/CD pipeline is not defined in the repo; runbooks are currently manual procedures.
- Action: Add deploy path attachments per environment (manual vs pipeline) when available.