Presented at WordCamp 2016 NYC. In this talk I’ll show you why Vagrant is so awesome and how you can get up and running quickly. Vagrant is a great piece of software that creates reproducible and portable virtual machines which can be used as web servers for local WordPress testing environments. Vagrant is a tool for managing virtual machines – creating a programmatic way create and configure virtual machines that mimic an application’s production environment.
I’ve collected a few WordPress-related Vagrant resources that will help you get started. Will discuss many of the different vagrant boxes used to create a portable WordPress environment that are cross-platform compatible and easily to be deployed to almost any live environment.
12. Benefits
Installing WordPress development environment in a reliable,
consistent and isolated way
Run a vagrant box configured exactly like production machine
Your machine is not tied to one project
Can customize each VM environment to match production.
Can have multiple VMs on a PC.
Debugging an edge issue due specific version of PHP, MySQL
etc.
Separates code and environment it runs in.
A more elegant solution compared to LAMP
15. Developer
Continue to work in your own browsers, editors,
and other tools.
The existence of Vagrant is
transparent and unimportant.
Vagrant is just the workhorse that creates
consistent and stable development environments.
16. Systems Operators
1) “vagrant up”
2) Complete sandbox to test ops scripts
Automation developed used for both production
and development.
With every vagrant up, developers get a fully
provisioned environment using the same scripts
as production.
18. Tao of Vagrant
Vagrant up will get you up and running at any moment.
Knowledge transfers to every project that uses Vagrant.
Vagrant is a general purpose Tool. Use it in a way that works best
for you.
May need to SSH into the machine to run some code.
No problem: vagrant ssh
23. VagrantPress
●
Alternative to VVV for Testing plugins and
themes before deploying them on a live site
●
Creating a dev site for theme development
●
Running WordPress Betas to try new features
https://github.com/chad-thompson/vagrantpress