Top Banner
WordPress Workflows PBWEB.CO.UK @PHILL_BROWN
29

WordPress Workflows

May 26, 2015

Download

Technology

Phill Brown

Workflows and Deployment. Set up environment using MAMP, WAMP or Vagrant. Track code using Git or Subversion and migrate your database.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: WordPress Workflows

WordPress Workflows

PBWEB.CO.UK

@PHILL_BROWN

Page 2: WordPress Workflows

What is a Workflow?

Page 3: WordPress Workflows

Theme Dev

Dev

Live

Local

Remote

Plugin Dev

Staging

Page 4: WordPress Workflows

• Collaboration

• Tracked changes

• Code recovery

• Distribution

• Consistency

Page 5: WordPress Workflows

Stack

Page 6: WordPress Workflows
Page 7: WordPress Workflows
Page 8: WordPress Workflows

• OS agnostic

• Automated provisioning

• Consistent

• Instantiable

• VagrantPress

Page 9: WordPress Workflows

Codebase

Page 10: WordPress Workflows

Version Control

Page 11: WordPress Workflows
Page 12: WordPress Workflows
Page 13: WordPress Workflows

Provisioning VC

• wp-config.php

• upgrade

Optional:

• blogs.dir

• uploads

• htaccess/web.config

Page 14: WordPress Workflows

Provisioning VC

WordPress Skeleton – Mark Jaquith

Page 15: WordPress Workflows

• Github

• Bitbucket

• Beanstalk

• Direct remotes

Shared hosts

Page 16: WordPress Workflows

Staging

Live

Bitbucket

Environments

Code host

Dev

Page 17: WordPress Workflows
Page 18: WordPress Workflows

Database

Page 19: WordPress Workflows

1. Shared Database

2. WordPress post import/export

3. WP Migrate DB Pro

Page 20: WordPress Workflows

Staging

Live

Dev DB

Dev

Live DB

Shared Database

Page 21: WordPress Workflows

• Keeps everything consitent

• Depends on common URLs

• Users can overwrite one another

Shared Database

Page 22: WordPress Workflows

Remote

Local

Export

Import / Export

WP-CLI WP-CLI

Page 23: WordPress Workflows

• Simple post-based sites

• Transfers media

• Doesn’t migrate options and widgets Widget Settings Importer/Exporter

Define settings as config constants

Import / Export

Page 24: WordPress Workflows

WP Migrate DB Pro

Remote

Local

HTTP

Page 25: WordPress Workflows

• Full HTTP(S) DB transfer

• Replaces site URLs and filepaths

• Requires same table prefix

• Media library add-on

WP Migrate DB Pro

Page 26: WordPress Workflows

MISSING

MERGES

Page 27: WordPress Workflows

• Consistent local and remote

environments

• Version control

• Database migrations

• Start well

Summary

Page 28: WordPress Workflows

• Code Deployment (Capistrano)

• Provisioning (Puppet + Chef)

Final thoughts

Page 29: WordPress Workflows

Questions?

@PHILL_BROWN

[email protected]