wordpress workflows
DESCRIPTION
Workflows and Deployment. Set up environment using MAMP, WAMP or Vagrant. Track code using Git or Subversion and migrate your database.TRANSCRIPT
WordPress Workflows
PBWEB.CO.UK
@PHILL_BROWN
What is a Workflow?
Theme Dev
Dev
Live
Local
Remote
Plugin Dev
Staging
• Collaboration
• Tracked changes
• Code recovery
• Distribution
• Consistency
Stack
• OS agnostic
• Automated provisioning
• Consistent
• Instantiable
• VagrantPress
Codebase
Version Control
Provisioning VC
• wp-config.php
• upgrade
Optional:
• blogs.dir
• uploads
• htaccess/web.config
Provisioning VC
WordPress Skeleton – Mark Jaquith
• Github
• Bitbucket
• Beanstalk
• Direct remotes
Shared hosts
Staging
Live
Bitbucket
Environments
Code host
Dev
Database
1. Shared Database
2. WordPress post import/export
3. WP Migrate DB Pro
Staging
Live
Dev DB
Dev
Live DB
Shared Database
• Keeps everything consitent
• Depends on common URLs
• Users can overwrite one another
Shared Database
Remote
Local
Export
Import / Export
WP-CLI WP-CLI
• Simple post-based sites
• Transfers media
• Doesn’t migrate options and widgets Widget Settings Importer/Exporter
Define settings as config constants
Import / Export
WP Migrate DB Pro
Remote
Local
HTTP
• Full HTTP(S) DB transfer
• Replaces site URLs and filepaths
• Requires same table prefix
• Media library add-on
WP Migrate DB Pro
MISSING
MERGES
• Consistent local and remote
environments
• Version control
• Database migrations
• Start well
Summary
• Code Deployment (Capistrano)
• Provisioning (Puppet + Chef)
Final thoughts