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