Find file History
Pull request Compare This branch is 35 commits behind ryanb:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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