WordPress Development
With Vagrant, VVV, and Vagrant
Mitch Canter
@thatmitchcanter • www.mitchcanter.com
HELLO!
#wcnashvvv
The Workflow
The Workflow
The IDEAL Workflow
• Separate Sites
• Easy Addition of New Sites
• Seamless File Editing
• Similar to Production Environment
Lightweight
Reproducible
Portable
• Install Vagrant
- https://www.vagrantup.com/
• Install Virtualbox
- https://www.virtualbox.com/
• Install Git
- https://git-scm.com/
Next: A Vagrant “Box”
Required Technologies
Linux, nginx, mySQL, PHP-FPM
VVV
Varying-Vagrant-Vagrants
https://github.com/Varying-Vagrant-Vagrants/VVV
Git-Clone The Box
git clone https://github.com/Varying-
Vagrant-Vagrants/VVV.git ~/Sites
Essential Vagrant Plugins
(Hosts Updater, Triggers, VBGuest)
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-triggers
vagrant plugin install vagrant-vbguest
Initialize Vagrant:
vagrant up
Quittin’ Time:
vagrant halt
(Semi)Automation Tools
VV
Variable VVV
https://github.com/bradp/vv
Optional (Mac): Homebrew
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew
/install/master/install)"
Mac: Install VV
brew install bradp/vv/vv
Linux: Install VV
git clone https://github.com/bradp/vv.git
sudo cp vv /usr/local/bin
Windows: Install VV
https://github.com/bradp/vv#windows-installation
VV Commands
Site Creation
vv create
Site Creation Advanced
vv create –username <username> --password
<password> --email <email> --domain
<domain.dev> --name <foldername>
Local At-A-Glance
VVV-Dashboard
Variable VVV
https://github.com/topdown/VVV-Dashboard
Demo Time
Questions?
Thanks!
@thatmitchcanter • www.mitchcanter.com

WordPress Development with VVV, VV, and Vagrant