Local development with vvv jon trujillo

JonathanTrujillo4 1,576 views 52 slides Nov 06, 2015
Slide 1
Slide 1 of 52
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52

About This Presentation

Local Development with Vagrant & VVV
A talk from WordCamp Sacramento 2015. This talk covers installing Vagrant, VVV and a couple of other tools that make using VVV easier to use.


Slide Content

Local Development

With Vagrant & VVV
2015 WordCamp

Sacramento

HOW I GOT HERE
a brief overview of my Local Dev History

MY FIRST DEV ENVIRONMENT
Installed PHP, 

MySQL & Apache on OSX

MY NEXT DEV ENVIRONMENT
MAMP & MAMP PRO

AND THEN…
KINDA COWBOY CODING

AND THEN…

WHAT WE’LL

BE GOING OVER
What is Vagrant
What is Varying Vagrant
Vagrants(VVV)
Getting Set Up
Tools for working with VVV
Setting up a new site
Some other interesting 

Vagrant Projects

WHAT IS
VAGRANT

WHAT IS
VAGRANT
Software to setup sandboxed
development environments
It uses Virtual Machines
Won’t junk up your native OS
Can be setup to better match 

to your production environment 

(nginx or apache)

SETTING UP
VAGRANT

STEP 1

Install A Virtual Machine Provider
vmware
Fusion or Workstation
STEP 1

STEP 2

Install Vagrant
There are installers for
•Mac
•Windows
•Linux (Dabian & Centos)
STEP 2

STEP 3

Test it in your Terminal
STEP 3

VAGRANT
COMMANDS

SOME HELPFUL
COMMANDS
vagrant up
vagrant halt
vagrant ssh
vagrant suspend
vagrant resume

VARYING
VAGRANT
VAGRANTS

WHAT

IS VVV
A vagrant environment that’s
configured for WordPress development
Started life as a 10up project now it’s
maintained by it’s own community
Includes a ! ton of stuff:
•Ubuntu
•nginx (there is an apache branch too)
•4 Standard Wordpress Installs
•WP-CLI
•And more

INSTALL VVV

Install the vagrant plugin “vagrant-hostupdater"
STEP 1

Install the vagrant Plugin “vagrant-triggers"
STEP 2

Clone the VVV into a “vagrant-local” directory
STEP 3

Change directory into vagrant-local and “vagrant up”
STEP 4

Go make some coffee… this part takes a few minutes.
STEP 4

You’re running Variable Vagrant Vagrants
TA-DA…

WHAT JUST
HAPPENED?
Setup your Ubuntu development box
Created a site at vvv.dev with links 

to all the bundled tools & Links to
default Installs
Setup the default WordPress installs
1.http://local.wordpress.dev/
2.http://local.wordpress-trunk.dev/
3.http://src.wordpress-develop.dev/
4.http://build.wordpress-develop.dev/
Default Creds are admin & password

NOW WHAT?

Visit local.wordpress.dev in your browser
Go Check

ACCESSING
THE DATABASE

phpMyAdmin
vvv.dev/database-admin

SEQUEL PR0

VAGRANT
SSH
Get silly with MySQL 

with the command line

SOME TOOLS

VVV DASHBOARDS

VVV.DEV
Take the vvv.dev site from this…

BOOTSTRAP STYLED VVV.DEV
to this…

VVV
SITE WIZARDS

VARIABLE VVV
By Brad Parbs he works WebDev Studios

‘cause there wasn’t enough V’s

WHAT YOU

GET WITH 

VARIABLE VVV

WHAT YOU

GET WITH 

VARIABLE VVV
Lets you type vv create in
Terminal, answer a couple of
questions and it builds your install.
1.Directory Name
2.Domain (Defaults to DirectoryName.dev)
3.Wordpress (Latest Stable or Trunk)
4.Multisite Install
5.Git Repo of wp-content folder
6.Local SQL file to import
7.Remove default themes & plugins
8.Add Sample Content
9.Enable WP_DEBUG & WP_DEBUG_LOG

WHAT YOU GET WITH VARIABLE VVV
Just run vv create to start the ⚡wizard

REMOVE AN INSTALL
When you realize you mistyped the install name…

A FEW OF THE
VARIABLE VVV
CREATION
OPTIONS
Blueprints
Set User Name, Password & Email
Locale
Create a Blank Site without WordPress

VAGRANT
MANAGER

App for Mac & Windows that will let you control your
vagrant boxes without using a command line.

OTHER VAGRANT
PROJECTS

MERCURY VAGRANT (HGV)
WPEngine Vagrant Box that is

set up to match their environment

TRELLIS
From the Roots team. It’s an interesting 

project that uses Ansible for provisioning

Any Questions?

THANK
YOU!
I’m Jon Trujillo
I work for Tytanium Ideas
I’m a Husband, Dad & Jesus Freak
Twitter: @jontrujillo
LinkeIn: jontruijllo
JonTrujillo.com