Managing WordPress Configuration via Source Control

WordPress Logo - blue WP-CFM LogoGit Logo

WordPress Grand Rapids Meetup – May, 2020

The Challenges

  1. Accidental Configuration Changes
  2. Keeping Track of Configuration History
  3. Environment Specific Configuration
  4. Separating Content From Configuration

The Tools

  • WordPress Plugin (WP-CFM)
  • Source Control (Git/Subversion/etc)
  • CI/CD (Continuous Integration/Continuous Delivery & Deployment)
  • WP-CLI

The Goals

  • Keep Track of Changes – Source Control
  • Ensure The Right Configuration For The Environment
    • Single Configuration
    • Per-Environment Configuration
  • Deploy Content Without Concern For Losing Configuration
    • CI/CD – Deploy Code & Configuration
    • Content Copy – Database Migrations

The Guide – How Can We Do Configuration Management?

Configuration Management

WP-CFM Logo

What Does WP-CFM Provide?

Using Bundles to Group Configuration

  • WordPress Core Starting Settings
  • Active Plugins
  • Widgets
  • Specific Plugin Settings

Support for Multiple Environments

  • Out-of-the-Box on Pantheon
  • Hooks Available to Supply Environment Logic

Manage Configuration via the WordPress CLI

wp config
wp config push <bundle_name>|all
wp config pull <bundle_name>|all

Demo

WordPress Configuration Management Demo Site

Q&A

Twitter @tnolte / GitHub @timnolte / WPGR @timnolte / LinkedIn @timjnolte


www.timnolte.com | www.ndigitals.com