Magical WordPress Development with Vagrant

3,354 views

Published on

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
3,354
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Magical WordPress Development with Vagrant

  1. 1. Chris Olbekson ! WordPress Developer Twitter: @chris_olbekson Houston, TX !
  2. 2. Magical WordPress Development With Vagrant
  3. 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. 4. Vagrant
  5. 5. How did we get here? !
  6. 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. 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. 8. Minimum Requirements ! ! XAMPP, MAMP, WAMP ! Point and click stable LAMP sandboxes !
  9. 9. ! Environment Requirements ! Ngnix Memcached Varnish Squid
  10. 10. ! Environment Requirements ! Ngnix Memcached Varnish Squid
  11. 11. Vagrant is the magical WordPress development environment you’ve been looking for !
  12. 12. What is Vagrant? Vagrant is open source software for creating and configuring portable development environments. ! http://www.vagrantup.com/about.html
  13. 13. 1. Host 2. Guest 3. Box 4. Provisioning ! ! ! ! Anotomy of a Vagrant Virtual Machine
  14. 14. .VagrantFile !
  15. 15. provision.sh !
  16. 16. Puppet Chef Salt !
  17. 17. $ vagrant up ! $ vagrant destroy
  18. 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. 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. 20. 13 Vagrant Resources for WordPress Development ! http://wptavern.com/13-vagrant-resources- for-wordpress-development ! ! !
  21. 21. VIP Quick Start ! Closely resembles the WordPress dot com VIP stack ! ! !
  22. 22. The Future? ! .VagrantFile in core ! Hosting providers publishing a .VagrantFile ! Hello WP Engine, HostGator, Media Temple ! ! !
  23. 23. Questions? ! Comments? ! ! !

×