WordPress DevOps
For Beginners
http://poweredbycoffee.co.uk
Stewart Ritchie
@stewartritchie
stewart@poweredbycoffee.co.uk
This is NOT
a Tutorial
http://poweredbycoffee.co.uk
What is Dev Ops
anyway?
http://poweredbycoffee.co.uk
Why is Dev Ops
Important?
http://poweredbycoffee.co.uk
1. DevOps will make you a
better developer.
http://poweredbycoffee.co.uk
2. DevOps will help you
deliver better work to your
clients
http://poweredbycoffee.co.uk
3. DevOps helps move
WordPress into bigger
companies and
opportunities
http://poweredbycoffee.co.uk
How Does Dev Ops Help?
http://poweredbycoffee.co.uk
1. Collaboration
2. Code Sharing
3. Automation
1. Collaboration
http://poweredbycoffee.co.uk
Version Control
http://poweredbycoffee.co.uk
Easy for developers to collaborate
A hardened nuclear bunker for your source code
Makes it easy to have more that one version of your project!
Basically a time machine
What is a “Commit”?
http://poweredbycoffee.co.uk
http://poweredbycoffee.co.uk
Merging Version Control
http://poweredbycoffee.co.uk
- Gives you the ability to manage different versions of your software
- Development, Staging & Production
- Approve code to move up the versions into production
http://poweredbycoffee.co.uk
http://poweredbycoffee.co.uk
http://poweredbycoffee.co.uk
http://poweredbycoffee.co.uk
http://poweredbycoffee.co.uk
2. Code Sharing
http://poweredbycoffee.co.uk
Dependencies
http://poweredbycoffee.co.uk
WordPress Has
Dependencies
http://poweredbycoffee.co.uk
- Diff by Geoffrey T. Bairiki
- ID3 by James Heinrich
- BackBone & Underscores
The Problem with
dependancies is that they
can change
http://poweredbycoffee.co.uk
What About Your Project?
http://poweredbycoffee.co.uk
Your Dependancies
- have dependencies
http://poweredbycoffee.co.uk
What About Your Project?
http://poweredbycoffee.co.uk
This Sounds Like a
Nightmare
http://poweredbycoffee.co.uk
getcomposer.org
Composer & WordPress
http://poweredbycoffee.co.uk
https://core.trac.wordpress.org/ticket/23912
https://core.trac.wordpress.org/ticket/36335
bower.io
Can Bite You
http://poweredbycoffee.co.uk
Easy Ways To Get Started
http://poweredbycoffee.co.uk
3. Automation
http://poweredbycoffee.co.uk
Repetition Sucks
http://poweredbycoffee.co.uk
Mistakes Get Made
People Get Bored
Creative people usually don't like to do the same thing over and over again.
Not a good use of skills and talent
Need to do it twice?
http://poweredbycoffee.co.uk
Need to do it twice?
Automate it.
http://poweredbycoffee.co.uk
Good Candidates for
Automation
http://poweredbycoffee.co.uk
Deployments
Compiling Assets (Sass, CoffeeScript, etc)
Compressing Images
Setting up servers
Installing WordPress
I Hate FTP
http://poweredbycoffee.co.uk
Automated Deployments
http://poweredbycoffee.co.uk
No more slow or failed FTP transfers
Easily tied into your version control
Easily undo a mistake
Get new code into production with a few key stokes or clicks
http://capistranorb.com
Capistrano
http://poweredbycoffee.co.uk
- Scriptable and self-installed
- Ruby
- Task Based
- Logs in to your server, pulls from your Version Control, runs a series of tasks
you tell it to.
- Super powerful and flexible
Deploy HQ Deploy Bot Buddy
DeployBot (etc)
http://poweredbycoffee.co.uk
- Many of these services exist
- Hard to configure but just works when its done
- $/£/€
- Less control and less flexible but easier to setup
Standardising
Environments
http://poweredbycoffee.co.uk
Use Virtual Machines
http://poweredbycoffee.co.uk
vagrantup.com
Concluding
http://poweredbycoffee.co.uk
Its going to take a while
http://poweredbycoffee.co.uk
These aren’t WordPress
Skills
http://poweredbycoffee.co.uk
They are Professional
Development Skills
http://poweredbycoffee.co.uk
Where To Go Next?
http://poweredbycoffee.co.uk
- Automated Testing (Never ship something broken again)
- Visual Regression Testing (Make CSS changes less painful)
- Code Quality Checks (Stop bad code getting into your repo or near a server)
- Install Software on your servers with a few keystrokes
- Notifications and Integration with your other tools

WordPress London Developer Operations For Beginners