Deployment
Deployment Methods
| Method | Use Case |
|---|---|
| Git push | Theme updates, plugin code, documentation |
| WP-CLI | Database changes, plugin activation |
| Direct edit | Emergency fixes (rare) |
| Cloudflare Pages | Docusaurus documentation sites |
Deployment Flow
Feature branch → Development testing
→ Merge to main branch
→ Pull on server
→ WP-CLI for database changes
→ Clear cache (LiteSpeed + Cloudflare)
→ Verify deployment
Cache Invalidation
| Cache Layer | Invalidation Method |
|---|---|
| LiteSpeed Cache | Purge all via admin or WP-CLI |
| Cloudflare | Cache purge via API or dashboard |
| Browser cache | Versioned asset URLs (automatic) |
Rollback Process
- Revert Git commit
- Restore files from Git history
- Restore database from latest restic backup if needed
- Purge all caches
- Verify site functionality
Post-Deployment Checks
- Front page loads correctly
- Contact form submits successfully
- Member access works
- Search functions
- Analytics tracking active
- No PHP errors in logs
- Cache warming complete