Getting Started with Vagrant

Post on 29-Jan-2015

128 views 4 download

Tags:

description

Learn how Vagrant, a tool for creating portable development environments, can help you: - Easily setup a local development environment - Match your local development environment to production and avoid surprises during deployment. - Share development environments with team members and get new team members up and running in record time. - Easily deploy code by using providers and provisioners. Presentation given at WordCamp Asheville 2014: http://2014.asheville.wordcamp.org/session/getting-started-with-vagrant/ NOTE: This slide deck isn't going to be extremely helpful on its own. Please view the associated blog post for more context: http://wpscholar.com/presentations/getting-started-with-vagrant/

Transcript of Getting Started with Vagrant

Getting Started with Vagrant

Micah Wood

@wpscholar http://micahwood.me

What is Vagrant?

A tool for creating and sharing work

environments.

Create and destroyvirtual machines

Automatically provision

virtual machines

Networkvirtual machines

Package and distribute

virtual machines

Why use Vagrant?

LocalDevelopment

Consistent Environment

Portability

Easily TestScripts

How do I use Vagrant?

https://www.virtualbox.org/ http://www.vagrantup.com/

Create Vagrantfile

$ vagrant init <name> <url>

Start Virtual Machine

$ vagrant up

PuPHPethttps://puphpet.com

Varying Vagrant Vagrants

https://github.com/Varying-Vagrant-Vagrants/VVV

vvv-hostsvvv-init.sh

vvv-nginx.conf

https://github.com/varying-vagrant-vagrants/vvv/wiki/Auto-site-Setup

VVV Site Wizardhttps://github.com/aliso/vvv-site-wizard

Questions?