Skip to content

Instantly share code, notes, and snippets.

@richaber
Last active February 29, 2016 16:19
Show Gist options
  • Save richaber/ac99e318ea542d170c62 to your computer and use it in GitHub Desktop.
Save richaber/ac99e318ea542d170c62 to your computer and use it in GitHub Desktop.
VVV

I use HomeBrew as my OSX package manager.

I'm using Varying Vagrant Vagrants (VVV) from 10up as a MAMP replacement.

I use Variable VVV (vv) as a wizard to spin up new sites in VVV.

It is worth noting that VVV uses NGINX, not Apache. Not a deal breaker for me, but could be for others.

Install HomeBrew (assuming this is Mac OS X)

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Download and install Vagrant from http://www.vagrantup.com/downloads.

After you have installed vagrant, you will need to install some necessary Vagrant plugins.

Open a Terminal and install the following Vagrant plugins.

The vagrant-hostsupdater plugin manages the /etc/hosts file on the Host system.

vagrant plugin install vagrant-hostsupdater

The vagrant-triggers plugin allows the definition of arbitrary scripts that will run on the host or guest before and/or after Vagrant commands.

vagrant plugin install vagrant-triggers

The vagrant-bindfs plugin automates bindfs mounts in the VM. This allow you to change owner, group and permissions on files and work around NFS share permissions issues.

vagrant plugin install vagrant-bindfs

Install the Varying Vagrant Vagrants (VVV) box.

cd ~

git clone git://github.com/Varying-Vagrant-Vagrants/VVV.git vagrant-local

Run VVV For First Time, go get some coffee while it provisions...

cd ~/vagrant-local

vagrant up

Install Variable VVV (vv) Wizard script.

brew install bradp/vv/vv

Create a site with vv.

vv create --name example --domain example.dev --debug --username ExampleAdmin --email richaber@gmail.com --prefix wp_

Links to sites/docs for reference

https://www.vagrantup.com/docs/

http://brew.sh/

https://github.com/Varying-Vagrant-Vagrants/VVV/blob/develop/README.md

https://github.com/bradp/vv/blob/master/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment