SlideShare uma empresa Scribd logo
1 de 21
No more “Cowboy Coding”
A Best Practices Guide to
Local Development
& Migration
all disney images used without permission so don’t sue me
How many of you have done THIS?
Or This? (without a backup)
Or This?
Well, That’s Cowboy Coding!
And we don’t
take KINDLY to
those kinda
SHENANIGANS!
(and neither do
your clients)
Tonight, we’ll talk about
the Importance of:
✘Regular Backups
(Even Better in the CLOUD!)
✘Local Development FIRST
✘Understanding the WordPress Database
& File Structure
✘Version Control Process
(& why it’s so important)
✘Migrating a LIVE Website from Local
(without losing your head)
BACKUPS
MINIMUM: Copy your file before editing or replacing into
a backup directory
BETTER: Use Cloud Connected Storage
✘OFFSITE
✘Sync’d on all your devices (even your phone)
✘RESTORE History!
(Easy to get back to prior version)
GREAT for Graphic Files, Project Documents
http://dropbox.com
http://google.com/drive/
LOCAL DEV
Web Server running WordPress w/ MySQL Database
on your LOCAL machine
Why? Gives you a Safety Net
✘Test things (and break things) w/o hurting anyone
✘Test Plugins and Themes
✘Learn the WordPress Database
✘Great for Client Demos
LOCAL DEV
ServerPress’s
DesktopServer
(Works on Mac or Windows)
Automates the WAmP/MAMP
Stack (whatever that means)
FREE (up to 3 local websites)
http://serverpress.com
LOCAL DEV
Vagrants
VVV (or Varying Vagrant Vagrants)
Works on ALL OS’s (with some work)
(Requires VirtualBox & Vagrant)
Creates Virtual Machines all within
your desktop (more console based)
FREE but Complicated
Getting Started Walkthrough:
http://torquemag.io/2014/08/getting-started-vagrant-local-development/
https://webdevstudios.com/2015/01/14/getting-started-vagrant-vvv-local-development/
includes VV List, a VVV Site Wizard
Learn WordPress Database
Two really good resources to learn the structure of where your
files are stored; necessary when you’re doing migrations:
Tour of the WordPress Database:
https://deliciousbrains.com/tour-wordpress-database/
Tour of the MultiSite WordPress Database:
https://deliciousbrains.com/wordpress-multisite-database-tour/
Learning phpMyAdmin & WordPress:
http://www.wpbeginner.com/beginners-guide/beginners-guide-to-wordpress-database-management-with-phpmyadmin/
Learn WordPress File Structure
Specifically WP_CONTENT
All your primary files for your WordPress installation
are in that directory:
/themes/ - all your theme files, active or not
/plugins/ - all your plugins, active or not
/uploads/ - All the Media files
Site Configuration in wp_config.php
https://codex.wordpress.org/WordPress_Files#wp-content
MIGRATIONS
The File & Database are important, because
MINIMUM to copy a WordPress site:
wp_content
wp_config.php (configured to connect to DB on new Server)
MySQLDUMP file imported into that Database
http://www.billerickson.net/migrating-wordpress-websites/
MIGRATIONS
Automated Tools for Migrations:
BackupBuddy by iThemes
Handles initial Migration,
not sure about ‘changes’
https://ithemes.com/purchase/backupbuddy/
MIGRATIONS
WP Migrate DB &
WP Migrate DB Pro
by Delicious Brains
Handles all Data migrations
with a PUSH/PULL technology
VERY Powerful!
https://deliciousbrains.com/wp-migrate-db-pro/
WP Migrate DB Pro
Local REMOTE
Can also handle MEDIA files
and new version can handle MultiSite
(subsites to single install & back)
Version Control with GIT
Incredibly powerful, but
sometimes Incredibly
complicated tool that can
save your life (and the life
of your project), if you
know how to use it.
LUCKILY….
http://wordpress.tv/2015/12/13/morten-rand-hendriksen-github-for-the-rest-of-us/
http://mor10.com/github-wcus/
Git Tools
✘GitHub Desktop (Mac & Windows)
https://desktop.github.com/
✘BitBucket / SourceTree (Mac & Windows)
https://www.sourcetreeapp.com/
✘Tower for Git (paid, Mac Only)
https://www.git-tower.com/
✘Additional Tutorials:
https://www.codeschool.com/courses/try-git
https://confluence.atlassian.com/bitbucket/bitbucket-tutorials-teams-in-space-training-ground-
755338051.html
Perfect Team
With GIT for Version control
of my theme stuff
and WP Migrate DB Pro to
keep my Data in sync
the Cloud for my Graphic Files
and Local Development with
Vagrant, I’m safe & effective
Who Am I?
Jim True, @jimtrue
Support Lead &
Community Manager
@podsframework
http://pods.io
Special Thanks to:
Iron Yard Tampa
St Pete Campus
Campus Director,
Toni Aliberti
@theironyard
Thanks for hosting us
every other 1st
Thursday of the Month
Tampa Bay WordPress
& WordCamp Tampa
WordCamp Tampa 9/10-11
USF Marshall Student Center
tampa.wordcamp.org
WordPress Meetups:
meetup.com/Tampa-Bay-WordPress
Slack Chat:
tampabaywp.org/chat/

Mais conteúdo relacionado

Mais procurados

How to setup wordpress blog in 10 mins
How to setup wordpress blog in 10 minsHow to setup wordpress blog in 10 mins
How to setup wordpress blog in 10 minssanjeevchugh
 
Exploring WordPress Multisite
Exploring WordPress MultisiteExploring WordPress Multisite
Exploring WordPress MultisiteLisa Sabin-Wilson
 
Debugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEngineDebugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEnginertCamp
 
WordPress Webinar Training Presentation
WordPress Webinar Training PresentationWordPress Webinar Training Presentation
WordPress Webinar Training PresentationMayeCreate Design
 
Multisite core concepts final
Multisite core concepts finalMultisite core concepts final
Multisite core concepts finalUmesh Chaudhary
 
Backup and Security Lite WCPHX13
Backup and Security Lite WCPHX13Backup and Security Lite WCPHX13
Backup and Security Lite WCPHX13Jeffrey Zinn
 
WordPress for Education PPT
WordPress for Education PPTWordPress for Education PPT
WordPress for Education PPTjekkilekki
 
Basic Wordpress PPT
Basic Wordpress PPT Basic Wordpress PPT
Basic Wordpress PPT mayur akabari
 
WordPress Website Creation Training Course Slides
WordPress Website Creation Training Course SlidesWordPress Website Creation Training Course Slides
WordPress Website Creation Training Course SlidesEquinet Academy
 
Getting started with WordPress development
Getting started with WordPress developmentGetting started with WordPress development
Getting started with WordPress developmentSteve Mortiboy
 
Word press dreamweaver
Word press dreamweaverWord press dreamweaver
Word press dreamweaverkmawk
 
Week1 Introduction
Week1 IntroductionWeek1 Introduction
Week1 IntroductionRowena LI
 
Comparison of Ruby CMS
Comparison of Ruby CMSComparison of Ruby CMS
Comparison of Ruby CMSBrian Loomis
 
WordPress as a Service
WordPress as a ServiceWordPress as a Service
WordPress as a ServiceAndrew Bauer
 
How to install a local instance of WordPress
How to install a local instance of WordPressHow to install a local instance of WordPress
How to install a local instance of WordPresssomisguided
 

Mais procurados (20)

How to setup wordpress blog in 10 mins
How to setup wordpress blog in 10 minsHow to setup wordpress blog in 10 mins
How to setup wordpress blog in 10 mins
 
Exploring WordPress Multisite
Exploring WordPress MultisiteExploring WordPress Multisite
Exploring WordPress Multisite
 
Intro to Wordpress
Intro to WordpressIntro to Wordpress
Intro to Wordpress
 
Debugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEngineDebugging WordPress Performance using EasyEngine
Debugging WordPress Performance using EasyEngine
 
WordPress Webinar Training Presentation
WordPress Webinar Training PresentationWordPress Webinar Training Presentation
WordPress Webinar Training Presentation
 
Multisite core concepts final
Multisite core concepts finalMultisite core concepts final
Multisite core concepts final
 
Backup and Security Lite WCPHX13
Backup and Security Lite WCPHX13Backup and Security Lite WCPHX13
Backup and Security Lite WCPHX13
 
WordPress for Education PPT
WordPress for Education PPTWordPress for Education PPT
WordPress for Education PPT
 
Extending WordPress
Extending WordPressExtending WordPress
Extending WordPress
 
WordPress Multisite
WordPress MultisiteWordPress Multisite
WordPress Multisite
 
Basic Wordpress PPT
Basic Wordpress PPT Basic Wordpress PPT
Basic Wordpress PPT
 
WordPress Website Creation Training Course Slides
WordPress Website Creation Training Course SlidesWordPress Website Creation Training Course Slides
WordPress Website Creation Training Course Slides
 
Ithemes presentation
Ithemes presentationIthemes presentation
Ithemes presentation
 
Getting started with WordPress development
Getting started with WordPress developmentGetting started with WordPress development
Getting started with WordPress development
 
Word press dreamweaver
Word press dreamweaverWord press dreamweaver
Word press dreamweaver
 
Week1 Introduction
Week1 IntroductionWeek1 Introduction
Week1 Introduction
 
Comparison of Ruby CMS
Comparison of Ruby CMSComparison of Ruby CMS
Comparison of Ruby CMS
 
WordPress as a Service
WordPress as a ServiceWordPress as a Service
WordPress as a Service
 
How to install a local instance of WordPress
How to install a local instance of WordPressHow to install a local instance of WordPress
How to install a local instance of WordPress
 
Meet The Family
Meet The FamilyMeet The Family
Meet The Family
 

Semelhante a No Cowboy Coding - A Guide to Local Dev, Backups and Migrations

No More “Cowboy Coding”: A Best Practices Guide to Local Development & Migration
No More “Cowboy Coding”: A Best Practices Guide to Local Development & MigrationNo More “Cowboy Coding”: A Best Practices Guide to Local Development & Migration
No More “Cowboy Coding”: A Best Practices Guide to Local Development & Migrationpodsframework
 
Manage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cliManage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cliGetSource
 
WordPress Development Environments
WordPress Development Environments WordPress Development Environments
WordPress Development Environments Ohad Raz
 
How I Learned to Stop Worrying and Backup WordPress
How I Learned to Stop Worrying and Backup WordPressHow I Learned to Stop Worrying and Backup WordPress
How I Learned to Stop Worrying and Backup WordPressChris Jean
 
Wordpress Security & Hardening Steps
Wordpress Security & Hardening StepsWordpress Security & Hardening Steps
Wordpress Security & Hardening StepsPlasterdog Web Design
 
Installing WordPress The Right Way
Installing WordPress The Right WayInstalling WordPress The Right Way
Installing WordPress The Right WayChris Burgess
 
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cliWordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cliGetSource
 
Keeping Local, Staging & Production Sites In Sync
Keeping Local, Staging & Production Sites In SyncKeeping Local, Staging & Production Sites In Sync
Keeping Local, Staging & Production Sites In SyncDavid Wang
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Think Media Inc.
 
Rock Solid WordPress
Rock Solid WordPressRock Solid WordPress
Rock Solid WordPressErik Osterman
 
WordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, LondonWordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, LondonBastian Grimm
 
Security, more important than ever!
Security, more important than ever!Security, more important than ever!
Security, more important than ever!Marko Heijnen
 
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...
WordCamp Atlanta -  April 15 2018 - dev team workflow and processes with word...WordCamp Atlanta -  April 15 2018 - dev team workflow and processes with word...
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...Evan Mullins
 
Installing & Setting Up WordPress
Installing & Setting Up WordPressInstalling & Setting Up WordPress
Installing & Setting Up WordPressGravitational FX
 
Vagrant WordCamp Hamilton
Vagrant  WordCamp HamiltonVagrant  WordCamp Hamilton
Vagrant WordCamp HamiltonPaul Bearne
 
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)Cliff Seal
 
Theming Wordpress for Your Showcases
Theming Wordpress for Your ShowcasesTheming Wordpress for Your Showcases
Theming Wordpress for Your ShowcasesJun Hu
 

Semelhante a No Cowboy Coding - A Guide to Local Dev, Backups and Migrations (20)

No More “Cowboy Coding”: A Best Practices Guide to Local Development & Migration
No More “Cowboy Coding”: A Best Practices Guide to Local Development & MigrationNo More “Cowboy Coding”: A Best Practices Guide to Local Development & Migration
No More “Cowboy Coding”: A Best Practices Guide to Local Development & Migration
 
Manage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cliManage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cli
 
WordPress Development Environments
WordPress Development Environments WordPress Development Environments
WordPress Development Environments
 
How I Learned to Stop Worrying and Backup WordPress
How I Learned to Stop Worrying and Backup WordPressHow I Learned to Stop Worrying and Backup WordPress
How I Learned to Stop Worrying and Backup WordPress
 
Wordpress Security & Hardening Steps
Wordpress Security & Hardening StepsWordpress Security & Hardening Steps
Wordpress Security & Hardening Steps
 
Installing WordPress The Right Way
Installing WordPress The Right WayInstalling WordPress The Right Way
Installing WordPress The Right Way
 
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cliWordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
 
Keeping Local, Staging & Production Sites In Sync
Keeping Local, Staging & Production Sites In SyncKeeping Local, Staging & Production Sites In Sync
Keeping Local, Staging & Production Sites In Sync
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013
 
Rock Solid WordPress
Rock Solid WordPressRock Solid WordPress
Rock Solid WordPress
 
WordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, LondonWordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, London
 
Security, more important than ever!
Security, more important than ever!Security, more important than ever!
Security, more important than ever!
 
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...
WordCamp Atlanta -  April 15 2018 - dev team workflow and processes with word...WordCamp Atlanta -  April 15 2018 - dev team workflow and processes with word...
WordCamp Atlanta - April 15 2018 - dev team workflow and processes with word...
 
Installing & Setting Up WordPress
Installing & Setting Up WordPressInstalling & Setting Up WordPress
Installing & Setting Up WordPress
 
Vagrant WordCamp Hamilton
Vagrant  WordCamp HamiltonVagrant  WordCamp Hamilton
Vagrant WordCamp Hamilton
 
Introducing Wordpress Multitenancy
Introducing Wordpress MultitenancyIntroducing Wordpress Multitenancy
Introducing Wordpress Multitenancy
 
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
Introducing WordPress Multitenancy (Wordcamp Vegas/Orlando 2015/WPCampus)
 
Theming Wordpress for Your Showcases
Theming Wordpress for Your ShowcasesTheming Wordpress for Your Showcases
Theming Wordpress for Your Showcases
 
Backing up your WordPress Site
Backing up your WordPress SiteBacking up your WordPress Site
Backing up your WordPress Site
 
Optimize wordpress
Optimize wordpressOptimize wordpress
Optimize wordpress
 

No Cowboy Coding - A Guide to Local Dev, Backups and Migrations

  • 1. No more “Cowboy Coding” A Best Practices Guide to Local Development & Migration all disney images used without permission so don’t sue me
  • 2. How many of you have done THIS?
  • 3. Or This? (without a backup)
  • 5. Well, That’s Cowboy Coding! And we don’t take KINDLY to those kinda SHENANIGANS! (and neither do your clients)
  • 6. Tonight, we’ll talk about the Importance of: ✘Regular Backups (Even Better in the CLOUD!) ✘Local Development FIRST ✘Understanding the WordPress Database & File Structure ✘Version Control Process (& why it’s so important) ✘Migrating a LIVE Website from Local (without losing your head)
  • 7. BACKUPS MINIMUM: Copy your file before editing or replacing into a backup directory BETTER: Use Cloud Connected Storage ✘OFFSITE ✘Sync’d on all your devices (even your phone) ✘RESTORE History! (Easy to get back to prior version) GREAT for Graphic Files, Project Documents http://dropbox.com http://google.com/drive/
  • 8. LOCAL DEV Web Server running WordPress w/ MySQL Database on your LOCAL machine Why? Gives you a Safety Net ✘Test things (and break things) w/o hurting anyone ✘Test Plugins and Themes ✘Learn the WordPress Database ✘Great for Client Demos
  • 9. LOCAL DEV ServerPress’s DesktopServer (Works on Mac or Windows) Automates the WAmP/MAMP Stack (whatever that means) FREE (up to 3 local websites) http://serverpress.com
  • 10. LOCAL DEV Vagrants VVV (or Varying Vagrant Vagrants) Works on ALL OS’s (with some work) (Requires VirtualBox & Vagrant) Creates Virtual Machines all within your desktop (more console based) FREE but Complicated Getting Started Walkthrough: http://torquemag.io/2014/08/getting-started-vagrant-local-development/ https://webdevstudios.com/2015/01/14/getting-started-vagrant-vvv-local-development/ includes VV List, a VVV Site Wizard
  • 11. Learn WordPress Database Two really good resources to learn the structure of where your files are stored; necessary when you’re doing migrations: Tour of the WordPress Database: https://deliciousbrains.com/tour-wordpress-database/ Tour of the MultiSite WordPress Database: https://deliciousbrains.com/wordpress-multisite-database-tour/ Learning phpMyAdmin & WordPress: http://www.wpbeginner.com/beginners-guide/beginners-guide-to-wordpress-database-management-with-phpmyadmin/
  • 12. Learn WordPress File Structure Specifically WP_CONTENT All your primary files for your WordPress installation are in that directory: /themes/ - all your theme files, active or not /plugins/ - all your plugins, active or not /uploads/ - All the Media files Site Configuration in wp_config.php https://codex.wordpress.org/WordPress_Files#wp-content
  • 13. MIGRATIONS The File & Database are important, because MINIMUM to copy a WordPress site: wp_content wp_config.php (configured to connect to DB on new Server) MySQLDUMP file imported into that Database http://www.billerickson.net/migrating-wordpress-websites/
  • 14. MIGRATIONS Automated Tools for Migrations: BackupBuddy by iThemes Handles initial Migration, not sure about ‘changes’ https://ithemes.com/purchase/backupbuddy/
  • 15. MIGRATIONS WP Migrate DB & WP Migrate DB Pro by Delicious Brains Handles all Data migrations with a PUSH/PULL technology VERY Powerful! https://deliciousbrains.com/wp-migrate-db-pro/
  • 16. WP Migrate DB Pro Local REMOTE Can also handle MEDIA files and new version can handle MultiSite (subsites to single install & back)
  • 17. Version Control with GIT Incredibly powerful, but sometimes Incredibly complicated tool that can save your life (and the life of your project), if you know how to use it. LUCKILY…. http://wordpress.tv/2015/12/13/morten-rand-hendriksen-github-for-the-rest-of-us/ http://mor10.com/github-wcus/
  • 18. Git Tools ✘GitHub Desktop (Mac & Windows) https://desktop.github.com/ ✘BitBucket / SourceTree (Mac & Windows) https://www.sourcetreeapp.com/ ✘Tower for Git (paid, Mac Only) https://www.git-tower.com/ ✘Additional Tutorials: https://www.codeschool.com/courses/try-git https://confluence.atlassian.com/bitbucket/bitbucket-tutorials-teams-in-space-training-ground- 755338051.html
  • 19. Perfect Team With GIT for Version control of my theme stuff and WP Migrate DB Pro to keep my Data in sync the Cloud for my Graphic Files and Local Development with Vagrant, I’m safe & effective
  • 20. Who Am I? Jim True, @jimtrue Support Lead & Community Manager @podsframework http://pods.io
  • 21. Special Thanks to: Iron Yard Tampa St Pete Campus Campus Director, Toni Aliberti @theironyard Thanks for hosting us every other 1st Thursday of the Month Tampa Bay WordPress & WordCamp Tampa WordCamp Tampa 9/10-11 USF Marshall Student Center tampa.wordcamp.org WordPress Meetups: meetup.com/Tampa-Bay-WordPress Slack Chat: tampabaywp.org/chat/