Coding, Scaling, and Deploys... Oh My!
Upcoming SlideShare
Loading in...5
×
 

Coding, Scaling, and Deploys... Oh My!

on

  • 9,399 views

You're a professional WordPress developer in charge of a professional WordPress site. It's time to have professional development and deployment practices.

You're a professional WordPress developer in charge of a professional WordPress site. It's time to have professional development and deployment practices.

Statistics

Views

Total Views
9,399
Views on SlideShare
8,198
Embed Views
1,201

Actions

Likes
18
Downloads
62
Comments
0

19 Embeds 1,201

http://www.ilovecolors.com.ar 480
http://planetwordpress.planetozh.com 274
http://www.thetechscoop.net 197
http://feeds.feedburner.com 82
http://wpspeciali.st 76
http://lanyrd.com 57
https://twitter.com 8
http://twitter.com 6
http://localhost 4
http://www.scoop.it 3
http://thetechscoop.net 2
http://us-w1.rockmelt.com 2
http://tweetedtimes.com 2
http://127.0.0.1:8795 2
http://www.zhuaxia.com 2
http://planetewordpress.planetozh.com 1
https://mail.google.com 1
http://webcache.googleusercontent.com 1
http://feedproxy.google.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Coding, Scaling, and Deploys... Oh My! Coding, Scaling, and Deploys... Oh My! Presentation Transcript

  • Coding Mark Jaquith “JAKE-with” Scaling and @markjaquith Deploys mark@jaquith.me markjaquith.com O hM y!Friday, August 12, 11
  • Meanwhile, in 2006... Photo by Sco Beale (Laughing Squid)Friday, August 12, 11
  • Cowboy CodingFriday, August 12, 11
  • PE R! BA D! AD DE VELO B Cowboy CodingFriday, August 12, 11
  • bnj.com/cowboy-coding-pink-sombreroFriday, August 12, 11
  • VCS • or • GTFOFriday, August 12, 11
  • WordPress in your repoFriday, August 12, 11
  • My Ideal index.php wp-config.php content/themes/ content/plugins/ content/uploads/ (ignored) wp ➠ EXTERNALFriday, August 12, 11
  • Local DevelopmentFriday, August 12, 11
  • 1. MAMP, XAMPP, other 2. /etc/hosts 3. local-config.phpFriday, August 12, 11
  • if ( file_exists( dirname( __FILE__ ) . /local-config.php ) ) { include( dirname( __FILE__ ) . /local-config.php ); define( WP_LOCAL_DEV, true ); } else { define( WP_LOCAL_DEV, false ); define( DB_NAME, production_db ); define( DB_USER, production_user ); define( DB_PASSWORD, production_password ); define( DB_HOST, production_db_host ); } Ignore local-config.php so it doesn’t get checked in.Friday, August 12, 11
  • Deploying — with —Friday, August 12, 11
  • 1. gem install capistrano 2. gem install railsless-deploy 3. gem install capistrano-extFriday, August 12, 11
  • releases/ current => {current-release} shared/cached-copy shared/files/Friday, August 12, 11
  • checked in: content/uploads => ../../files/uploads/ done on deploy: files => /srv/www/example.org/shared/files/Friday, August 12, 11
  • Scaling a Single ServerFriday, August 12, 11
  • nginxFriday, August 12, 11
  • proxy to Apache or PHP-FPMFriday, August 12, 11
  • PHP Opcode CacheFriday, August 12, 11
  • WP Object CacheFriday, August 12, 11
  • HTML Output Cache Batcache || W3 Total CacheFriday, August 12, 11
  • Fragment Caching if ( $html = wp_cache_get( expensive-html-chunk, my-theme ) ) { echo $html; } else { $html = dynamically_generate_foo(); wp_cache_set( expensive-html-chunk, $html, my-theme, 3600 ); echo $html; }Friday, August 12, 11
  • MySQL Query CacheFriday, August 12, 11
  • CDN — with — Origin PullFriday, August 12, 11
  • The PlanFriday, August 12, 11
  • The Plan What happens if we outgrow our server? Boss TechFriday, August 12, 11
  • The Plan What happens if we outgrow our server? We’ll just add new Boss servers! TechFriday, August 12, 11
  • The Plan What happens if we outgrow our server? We’ll just add new Boss servers! Brilliant! TechFriday, August 12, 11
  • The PlanFriday, August 12, 11
  • The RealityFriday, August 12, 11
  • The Reality Our site is slow. Let’s add another server. Boss TechFriday, August 12, 11
  • The Reality Our site is slow. Let’s add another server. Uh... Boss TechFriday, August 12, 11
  • The Reality Our site is slow. Let’s add another server. Uh... Boss So this will take like 5 minutes, right? TechFriday, August 12, 11
  • Have a plan Not an ideaFriday, August 12, 11
  • Multiple ServersFriday, August 12, 11
  • Load BalancingFriday, August 12, 11
  • Sharing UploadsFriday, August 12, 11
  • MemcachedFriday, August 12, 11
  • Rinse & RepeatFriday, August 12, 11
  • HyperDBFriday, August 12, 11
  • Maintaining Servers with PuppetFriday, August 12, 11
  • This is the start of a larger conversationFriday, August 12, 11
  • Mark Jaquith “JAKE-with” Thanks! @markjaquith mark@jaquith.me markjaquith.comFriday, August 12, 11