Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Vagrant setup for The Ruby on Rails Tutorial

TODO: Figure out timing. TODO: Put in note about how you don't have to do 'bundle install --without production' and can just do 'bundle install'

The second edition of Michael Hartl's _The Ruby on Rails Tutorial_^1^^ was my Rails inauguration. It was an excellent way to get grounded in the framework^2^^ and got bonus points for demonstrating solid development best practices (e.g. version control via Git and Test Driven Development).

Last October, the third edition came out. It has a few enhancements that caught my eye:

- Built on the latest major version of Rails (4.2) - MiniTest instead of RSpec for testing - Updated login/auth section - Account email/activation examples - Cloud storage examples

More than enough to make it worth going through the new edition.

My first step, as a Vagrant^3

Code

TKTKTKT - Insert final version of the Vagrantfile when everything is edited.

A simple `vagrant up` on that file on a recent Mac running Vagrant 1.7.2 will build and fire up a 64-bit Ubuntu 14.04 LTS box with everything needed to run through the tutorial including Rails 4.2.0 running on Rails 2.2.1 via RVM^6^^. It even does the network mapping so that a Rails server process running on the default 3000 port in the Vagrant box shows up at http://localhost:8080/ on your machine.

Anyone interested in knowing more about what all the various calls are for can check out this follow up.

Or, just run the file and enjoy working through the tutorial without the headache of setting up a local environment.

_Footnotes_

1. _The Ruby on Rails Tutorial_ by Michael Hartl - There are a few ways to do the tutorial. The cheapest is to go through it for free online. It's great, but I recommend paying for the book and the videos. It was totally worth it for me to be able to hear Michael walks through everything.

2. The Tutorial is great if you've got a little coding experience under your belt. If you're a complete beginner, bookmark it to come back to after you've gotten your feet a little wet somewhere else. (I'm still looking for the a "Start Here" recommendation I feel comfortable with for complete beginners. I'll post about it when I find it.)

4. A Vagrantfile is simply the configuration file that tells the Vagrant software how to build the virtual machine.

5. I skimmed the tutorial for anything that should be included in the Vagrantfile. I got everything obvious. I'll add anything I missed as I actually make my run through the tutorial.

6. TKTKTKTK RVM