Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (42 sloc) 1.11 KB
RailsCasts Episode #292: Virtual Machines with Vagrant
Commands used in episode
# setup vagrant
gem install vagrant
vagrant box add lucid32
rails new todo
cd todo
vagrant init lucid32
mate Vagrantfile
vagrant up
vagrant ssh
# inside virtual machine
cd /vagrant
ruby -v
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev curl git-core sqlite3 libsqlite3-dev
# install rbenv and Ruby 1.9.2
git clone git:// ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source .bash_profile
git clone git://
cd ruby-build/
sudo ./
rbenv install 1.9.2-p290
# get Rails running
cd /vagrant
gem install bundler
rbenv rehash
bundle exec rails s
# vagrant commands
vagrant reload
vagrant status
vagrant suspend
vagrant resume
vagrant halt
vagrant up
vagrant package
vagrant destroy