Skip to content

Instantly share code, notes, and snippets.

@MicahMartin
Created March 4, 2015 18:57
Show Gist options
  • Save MicahMartin/74a3a3ac41a320bb189b to your computer and use it in GitHub Desktop.
Save MicahMartin/74a3a3ac41a320bb189b to your computer and use it in GitHub Desktop.
Installing Vagrant Box And Configuring it with VVV
---------------------------------------*
1. What is a dev environment? *
---------------------------------------*
* A development environment is *more or less* A set of tools and processes that help you in creating your program.
*LAMP, WAMP, MAMP stacks..
*Think of Development environments as bundles of magic , doing heroic things behind the scenes.
---------------------------------------*
2. Before we install vagrant... *
---------------------------------------*
*Vagrant is a tool that makes virtual machines for us with a bunch of good magic inside. So before we get Vagrant installed, lets get Virtual-Box up and running!
*Open Up a terminal and run these commands
<-!->Don't put the $ in, its just there to show you where the command starts. <-!->
__________________________________
|
$ sudo apt-get install virtualbox |
__________________________________|
-------------------------------------*
3. Install vagrant! Woop *
-------------------------------------*
http://vagrantup.com/
run this command inside terminal to see if you have vagrant
_____________
|
$ vagrant -v |
_____________|
If it says something like -'Vagrant 1.7.2'- You're doing the right thing.
-------------------------------------*
4.setting up vagrant box *
-------------------------------------*
* A vagrant box is a tool that this software uses to quickly clone virtual machines into directories. Lets add one now!
<-!-> MAKE SURE YOU'RE IN YOUR DEV DIRECTORY, OR YOU'LL BE PUTTING CODE IN YOUR HOME FOLDER. WHICH IS REALLY UGLY. <-!->
* From your terminal, CD into your development directory and run these commands.
________________________________________________
|
$ vagrant plugin install vagrant-hostsupdater |
$ vagrant box add hashicorp/precise32 |
$ vagrant init hashicorp/precise32 |
$ vagrant up |
$ vagrant ssh |
________________________________________________|
You're now in the box!! Time to put in work! ( lol )
But before we get too carried away, lets install Word-Press and configure it with vagrant. They're like best pals
-------------------------------------*
4.Varying Vagrant Vagrants *
-------------------------------------*
* Say 'Varying Vagrant Vagrants' fast atleast 5 times. You cannot continue until you've done this.
* Ok great, we broke our tongues.
* 'Varying Vagrant Vagrants' (we'll call it 'VVV'), is used to give developers a production level development environment.
* Lets CD to a directory where we want to put our Word-Press VVV site base. I chose ~/dev/VVV.
* Clone the git repo into it
________________________________________________________________
|
$ git clone https://github.com/Varying-Vagrant-Vagrants/VVV.git |
________________________________________________________________|
* And now, prepare to wait for months and years as we set up our first VVV virtual machine.
* CD into VVV and run this command.
_____________
|
$ vagrant up |
_____________|
* This will take a long time!
* You can now visit any of the following default sites in your browser:
http://local.wordpress.dev/ for WordPress stable
http://local.wordpress-trunk.dev/ for WordPress trunk
http://src.wordpress-develop.dev/ for trunk WordPress development files
http://build.wordpress-develop.dev/ for the version of those development files built with Grunt
http://vvv.dev/ for a default dashboard containing several useful tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment