Slide 1

Slide 1 text

FROM LOCAL TO STAGING TO LIVE Using Version Control & Deployment Tools Mark Wilkinson | @wpmark

Slide 2

Slide 2 text

WE WILL COVER •  The  Problem  

Slide 3

Slide 3 text

WE WILL COVER •  The  Problem   •  Local  Development  Setup  

Slide 4

Slide 4 text

WE WILL COVER •  The  Problem   •  Local  Development  Setup   •  Version  Control  

Slide 5

Slide 5 text

WE WILL COVER •  The  Problem   •  Local  Development  Setup   •  Version  Control   •  Staging  /  Production  Site  

Slide 6

Slide 6 text

WE WILL COVER •  The  Problem   •  Local  Development  Setup   •  Version  Control   •  Staging  /  Production  Site   •  Deployment  

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

THE PROBLEM

Slide 9

Slide 9 text

FILE TRANSFER PROTOCOL FTP

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Insanity: doing the same thing over and over again and expecting different results Albert Einstein “

Slide 18

Slide 18 text

SETUP LOCAL DEVELOPMENT

Slide 19

Slide 19 text

LAMP LINUX/APACHE/MySQL/PHP

Slide 20

Slide 20 text

MAMP MAC/APACHE/MySQL/PHP

Slide 21

Slide 21 text

http://localhost

Slide 22

Slide 22 text

DocumentRoot "/Users/usr/Dropbox/Dev/htdocs/mdw" ServerName wpmark.dev ServerAlias www.wpmark.dev /Applications/MAMP/conf/apache/extra/httpd-vhosts

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

CONTROL VERSION

Slide 25

Slide 25 text

TRACK CHANGES

Slide 26

Slide 26 text

REPOSITORY LOCAL SITE PRODUCTION/LIVE STAGING

Slide 27

Slide 27 text

REPOSITORY LOCAL SITE PRODUCTION/LIVE STAGING

Slide 28

Slide 28 text

LOCAL SITE GITHUB FOR MAC

Slide 29

Slide 29 text

REPOSITORY PRODUCTION/LIVE STAGING DEPLOYMENT TOOL

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

HURDLES http://commons.wikimedia.org/wiki/File:Hurdles_(Scenes_from_a_Track_Meet).jpg

Slide 32

Slide 32 text

wp-config.php

Slide 33

Slide 33 text

http://markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips/ if ( file_exists( dirname( __FILE__ ) . '/local- config.php' ) ) { include( dirname( __FILE__ ) . '/local-config.php' ); define( 'WP_LOCAL_DEV', true ); } else { // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ }

Slide 34

Slide 34 text

.gitignore

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

SETUP STAGING/PRODUCTION

Slide 37

Slide 37 text

STAGING LIVE SERVER Ÿ CLIENT ACCESS

Slide 38

Slide 38 text

DATABASE SYNCING Ÿ MIGRATION FROM LOCAL

Slide 39

Slide 39 text

RECAP

Slide 40

Slide 40 text

DEVELOP LOCALLY

Slide 41

Slide 41 text

DEVELOP LOCALLY UNDER VERSION CONTROL

Slide 42

Slide 42 text

DEVELOP LOCALLY UNDER VERSION CONTROL USE DEPLOYMENT NOT FTP

Slide 43

Slide 43 text

DEVELOP LOCALLY UNDER VERSION CONTROL USE DEPLOYMENT NOT FTP DEPLOY TO STAGING FIRST

Slide 44

Slide 44 text

DEVELOP LOCALLY UNDER VERSION CONTROL USE DEPLOYMENT NOT FTP DEPLOY TO STAGING FIRST DEPLOY TO PRODUCTION

Slide 45

Slide 45 text

DEVELOP LOCALLY UNDER VERSION CONTROL USE DEPLOYMENT NOT FTP DEPLOY TO STAGING FIRST DEPLOY TO PRODUCTION DATABASE NOT THAT IMPORTANT

Slide 46

Slide 46 text

THANK YOU QUESTIONS? Mark Wilkinson | @wpmark