Skip to main content

Deployment

Deployment Methods​

MethodUse Case
Git pushTheme updates, plugin code, documentation
WP-CLIDatabase changes, plugin activation
deploy.shCanonical child-theme sync to GC-SG-M8
Direct editEmergency fixes (rare)
Cloudflare PagesDocusaurus documentation sites

Deployment Flow​

Local theme repo → PHP/CSS validation
→ `deploy.sh` theme sync to `GC-SG-M8`
→ WP-CLI for GP Element database changes
→ Clear only required caches
→ Origin verification
→ Optional Git commit/push

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 the local Git commit or restore the previous theme revision.
  2. Re-run deploy.sh to restore theme files.
  3. Re-publish the previous GP Element and draft the replacement when the change is element-driven.
  4. Restore the database/files backup only when database or production files need to be recovered.
  5. Purge required caches and verify origin functionality.

Post-Deployment Checks​

  • Front page loads correctly
  • Previous homepage Elements remain preserved as drafts when replaced
  • Contact form submits successfully
  • Member access works
  • Search functions
  • Analytics tracking active
  • No PHP errors in logs
  • Cache warming complete