Your SlideShare is downloading. ×
Magical WordPress Development with Vagrant
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Magical WordPress Development with Vagrant

1,221
views

Published on

Magical WordPress Development with Vagrant. WordCamp Austin 2014 by Chris Olbekson

Magical WordPress Development with Vagrant. WordCamp Austin 2014 by Chris Olbekson

Published in: Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,221
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Chris Olbekson ! WordPress Developer Twitter: @chris_olbekson Houston, TX !
  • 2. Magical WordPress Development With Vagrant
  • 3. Chris Olbekson @chris_olbekson $ fink remove --recursive daemonic xinitrc $ sudo rm -rf /opt/local $ brew tap josegonzalez/homebrew-php $ brew install php53 —with-fpm —with-mysql nginx mysql $ echo export PATH="$(brew —prefix josegonzalez/php/php55)/bin:/usr/local/ bin:$PATH” > ~/.bash_profile Fink Brew
  • 4. Vagrant
  • 5. How did we get here? !
  • 6. My WordPress Toolbox circa 2005 Connect to a remote machine (usually I do development on my laptop, locally, but sometimes I’ll work from another computer): ! $ ssh -l remote_username example.com $ mkdir /path/to/wordpress/ $ cd /path/to/wordpress/ $ svn co http://svn.automattic.com/wordpress/trunk/ . $ nano filename.php
  • 7. Minimum Requirements ! PHP 5.2.4 or greater MySQL 5.0 or greater The mod_rewrite Apache module ! Local LAMP Environments PHP, MySQL and Apache Binaries for Windows and Mac !
  • 8. Minimum Requirements ! ! XAMPP, MAMP, WAMP ! Point and click stable LAMP sandboxes !
  • 9. ! Environment Requirements ! Ngnix Memcached Varnish Squid
  • 10. ! Environment Requirements ! Ngnix Memcached Varnish Squid
  • 11. Vagrant is the magical WordPress development environment you’ve been looking for !
  • 12. What is Vagrant? Vagrant is open source software for creating and configuring portable development environments. ! http://www.vagrantup.com/about.html
  • 13. 1. Host 2. Guest 3. Box 4. Provisioning ! ! ! ! Anotomy of a Vagrant Virtual Machine
  • 14. .VagrantFile !
  • 15. provision.sh !
  • 16. Puppet Chef Salt !
  • 17. $ vagrant up ! $ vagrant destroy
  • 18. Varying Vagrant Vagrants ! The primary goal of Varying Vagrant Vagrants (VVV) is to provide an approachable way for developers to begin working in a development environment that matches a production environment as closely as possible. ! “The gateway Vagrant Config” — Jeremy Felt ! https://github.com/Varying-Vagrant-Vagrants/VVV
  • 19. VVV Site Wizard Bash script for spinning up new WordPress sites with VVV ! WordPress Theme Review VVV Creates a WordPress site set up with all the tools the Wordpress dot org theme review team uses. ! Primary Vagrant Uses Apache instead of Nginx and provisions with Puppet instead of bash !
  • 20. 13 Vagrant Resources for WordPress Development ! http://wptavern.com/13-vagrant-resources- for-wordpress-development ! ! !
  • 21. VIP Quick Start ! Closely resembles the WordPress dot com VIP stack ! ! !
  • 22. The Future? ! .VagrantFile in core ! Hosting providers publishing a .VagrantFile ! Hello WP Engine, HostGator, Media Temple ! ! !
  • 23. Questions? ! Comments? ! ! !