50
Confident Commits Delightful Deploys Mark Jaquith “JAKE-with” @markjaquith [email protected] markjaquith.com Friday, July 26, 13

Confident Commits, Delightful Deploys

Embed Size (px)

DESCRIPTION

You’re a WordPress professional. It’s time that your WordPress coding and deployment practices moved beyond manual backups and editing files on the server. Mistakes happen. You need a workflow that is ordered towards minimizing and recovering from mistakes, rather than one that embarasses you and makes changes stressful. This talk will examine the pitfalls of “winging it” when it comes to changing and deploying code, and will showcase multiple paths to the promised land of confident commits and delightful deploys.

Citation preview

Page 1: Confident Commits, Delightful Deploys

Confident Commits

Delightful Deploys

Mark Jaquith“JAKE-with”

@[email protected]

Friday, July 26, 13

Page 2: Confident Commits, Delightful Deploys

Confident Commits

Delightful Deploys

Mark Jaquith“JAKE-with”

@[email protected]

Friday, July 26, 13

Page 3: Confident Commits, Delightful Deploys

Confident Commits

Delightful Deploys

Mark Jaquith“JAKE-with”

@[email protected]

Awesome Alliterations

Friday, July 26, 13

Page 4: Confident Commits, Delightful Deploys

HobbyistProfessional

Friday, July 26, 13

Page 5: Confident Commits, Delightful Deploys

How it can all go wrong

Friday, July 26, 13

Page 6: Confident Commits, Delightful Deploys

WSOD

Friday, July 26, 13

Page 7: Confident Commits, Delightful Deploys

Fat-fingeredMySQL

CommandsFriday, July 26, 13

Page 8: Confident Commits, Delightful Deploys

UntraceableBugs

? ?? ? ? ?

Friday, July 26, 13

Page 9: Confident Commits, Delightful Deploys

Meddling Clients

Friday, July 26, 13

Page 10: Confident Commits, Delightful Deploys

Dependency Gotchas

Friday, July 26, 13

Page 11: Confident Commits, Delightful Deploys

DeploymentRegrets

“Undo. UNDO!”

Friday, July 26, 13

Page 12: Confident Commits, Delightful Deploys

Deploy-RelatedErrors

Friday, July 26, 13

Page 13: Confident Commits, Delightful Deploys

“I have no idea how I set up this server”

Friday, July 26, 13

Page 14: Confident Commits, Delightful Deploys

“Gotta change nginx.conf.

Better do it at 4am.”

Friday, July 26, 13

Page 15: Confident Commits, Delightful Deploys

CDN Issues

Friday, July 26, 13

Page 16: Confident Commits, Delightful Deploys

Friday, July 26, 13

Page 17: Confident Commits, Delightful Deploys

Friday, July 26, 13

Page 18: Confident Commits, Delightful Deploys

Friday, July 26, 13

Page 19: Confident Commits, Delightful Deploys

WAT.

Friday, July 26, 13

Page 20: Confident Commits, Delightful Deploys

The Dreaded — DNS — Changeover

Friday, July 26, 13

Page 21: Confident Commits, Delightful Deploys

Sound familiar?

Friday, July 26, 13

Page 22: Confident Commits, Delightful Deploys

How it can all go right

Friday, July 26, 13

Page 23: Confident Commits, Delightful Deploys

Version Control

Friday, July 26, 13

Page 24: Confident Commits, Delightful Deploys

git bisect

Friday, July 26, 13

Page 25: Confident Commits, Delightful Deploys

git bisect startgit checkout bad-pointgit bisect badgit checkout good-pointgit bisect good

Friday, July 26, 13

Page 26: Confident Commits, Delightful Deploys

Test, then:git bisect bad

— or —git bisect good

Friday, July 26, 13

Page 27: Confident Commits, Delightful Deploys

Code Deployment

Friday, July 26, 13

Page 28: Confident Commits, Delightful Deploys

Beanstalkapp.com

Deployhq.com&

Friday, July 26, 13

Page 29: Confident Commits, Delightful Deploys

Beanstalkapp.com

Deployhq.com&

Friday, July 26, 13

Page 30: Confident Commits, Delightful Deploys

WP Stack&

Capistrano-WP

Friday, July 26, 13

Page 31: Confident Commits, Delightful Deploys

DIY Auto Deploy

Friday, July 26, 13

Page 32: Confident Commits, Delightful Deploys

Just a Git Checkout?

Friday, July 26, 13

Page 33: Confident Commits, Delightful Deploys

Server Configuration Management

Friday, July 26, 13

Page 34: Confident Commits, Delightful Deploys

Puppet&

Chef

Friday, July 26, 13

Page 35: Confident Commits, Delightful Deploys

Local Development

Friday, July 26, 13

Page 36: Confident Commits, Delightful Deploys

Vagrantup.com

Friday, July 26, 13

Page 37: Confident Commits, Delightful Deploys

Vagrantup.com

Friday, July 26, 13

Page 38: Confident Commits, Delightful Deploys

VVV

Friday, July 26, 13

Page 39: Confident Commits, Delightful Deploys

Packer.io

Friday, July 26, 13

Page 40: Confident Commits, Delightful Deploys

Packer.io

Friday, July 26, 13

Page 41: Confident Commits, Delightful Deploys

Content Deployment

Friday, July 26, 13

Page 42: Confident Commits, Delightful Deploys

RAMP

Friday, July 26, 13

Page 43: Confident Commits, Delightful Deploys

option_name&

pre_option_name

Friday, July 26, 13

Page 44: Confident Commits, Delightful Deploys

add_filter( 'pre_option_comment_registration', '__return_true');

Friday, July 26, 13

Page 45: Confident Commits, Delightful Deploys

Dependencies

Friday, July 26, 13

Page 46: Confident Commits, Delightful Deploys

CDN Configuration

Friday, July 26, 13

Page 47: Confident Commits, Delightful Deploys

DNS Changeovers

Friday, July 26, 13

Page 48: Confident Commits, Delightful Deploys

Thanks!

Friday, July 26, 13

Page 49: Confident Commits, Delightful Deploys

Questions

Friday, July 26, 13

Page 50: Confident Commits, Delightful Deploys

Confident Commits

Delightful Deploys

Mark Jaquith“JAKE-with”

@[email protected]

Friday, July 26, 13