This will install a barebones Ubuntu 12.04 virtual machine with Ruby, RVM, PostgreSQL and Heroku toolbelt.
You must have the following software installed on your computer:
- VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Vagrant: http://www.vagrantup.com/downloads.html
- Around 1.5 GB of free space
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 sshSSH into the Vagrant machine. You can runlogoutto get out of the SSH session.vagrant destroyRemove all traces of the virtual machine. You can runvagrant upto recreate/provision the box.vagrant suspendandvagrant resumesuspends and resumes the virtual machine.vangrant haltandvagrant upshuts down and boots the virtual machine.