twitter: @pdclark #cowboymeetninja pdclark.com/wcphx2014

This Talk

Target Audience: Intermediate+

  • Development Environments
    • Transfer Strategies
  • Version Control
  • Error Reporting
    • Beginner, Intermediate, Advanced
    • Local vs. Live
  • Avoiding Search Engines
  • Theme/Plugin dependencies

Paul Clark

  • WordPress core contributor
  • Developing WordPress sites since 2006 (~2.0.1)
  • 12 plugins on WordPress.org, 20+ on Github
  • Speaker at TEDx and WordCamps in LA, Seattle, Portland, and Phoenix.

Avoid...

  • White Screens of Death (WSOD)
  • PHP Errors (warnings, notices)
  • Server errors (404, 501)
  • Incomplete content: "Coming Soon", Test pages
  • Dev sites in search

Set up a dev environment!!!

DesktopServer

Varying Vagrant Vagrants (VVV)

Anatomy of a WordPress install

  • WordPress core
  • Database
  • wp-content/
    • plugins/
    • themes/
    • uploads/
  • wp-config.php
  • .htaccess (permalinks)

Transfer Toolbox

Advantages of Version Control

  • See changes by clients or hackers
  • Share changes with coworkers
  • Compressed transfers
  • Instant deploys!!!
  • Instant reverts!!!
  • 2 backups of everything, always

Versions of Version Control

  • Git
  • SVN
  • Dropbox
  • FTP
  • functions.php.old
  • functions.php.new
  • functions.php.newer
  • functions.php.newest

Git Toolbox

Error Output: Beginner

Split wp-config.php into development and live versions.

wp-config.php: development

wp-config.php: live

Display errors only to you

Error Output: Intermediate

Error Output: Advanced

Hiding Test Sites

Grab Bag

Thank You!