Skip to main content

Deployment

Deployment Methods

MethodUse Case
Git pushTheme updates, plugin code, documentation
WP-CLIDatabase changes, plugin activation
Direct editEmergency fixes (rare)
Cloudflare PagesDocusaurus 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 LayerInvalidation Method
LiteSpeed CachePurge all via admin or WP-CLI
CloudflareCache purge via API or dashboard
Browser cacheVersioned asset URLs (automatic)

Rollback Process

  1. Revert Git commit
  2. Restore files from Git history
  3. Restore database from latest restic backup if needed
  4. Purge all caches
  5. 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