/vagrant-ruby-starter

Ruby development VM using Vagrant & Ansible

Primary LanguageShell

This will install a barebones Ubuntu 12.04 virtual machine with Ruby, RVM, PostgreSQL and Heroku toolbelt.

Prerequisites

You must have the following software installed on your computer:

Getting started

Clone the repository and cd into it:

git clone https://github.com/6/vagrant-ruby-starter.git
cd vagrant-ruby-starter

Next, provision the machine:

vagrant up

The first time you run this, it will take around 15 - 20 minutes as it will have to download the Ubuntu box and install all software. It's normal to see warnings during this process and for certain tasks to take a while to complete (e.g. installing Ruby).

Once this is done, you can ssh into the machine and confirm that Ruby and RVM are installed by running:

vagrant ssh
rvm list

The PostgreSQL superuser has the username postgres with no password. You can open the psql command line interface with sudo -u postgres psql.

Vagrant quick reference

  • vagrant ssh SSH into the Vagrant machine. You can run logout to get out of the SSH session.
  • vagrant destroy Remove all traces of the virtual machine. You can run vagrant up to recreate/provision the box.
  • vagrant suspend and vagrant resume suspends and resumes the virtual machine.
  • vangrant halt and vagrant up shuts down and boots the virtual machine.