Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Created December 12, 2010 16:17
Show Gist options
  • Save waynegraham/738136 to your computer and use it in GitHub Desktop.
Save waynegraham/738136 to your computer and use it in GitHub Desktop.
#! /bin/bash
RUBY_VERSION=1.8.7
RAILS_VERSION=2.3.10
# This script will help install RVM, ruby, and rails
# Install ruby through rvm system to the local user
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
#install ruby 1.8.7
rvm install ruby-$RUBY_VERSION
# create an rvm gemset for rails 2.3.10
rvm gemset create rails-$RAILS_VERSION
# use ruby 1.8.7 and the rails 2.3.10 gemset
rvm ruby-$RUBY_VERSION@rails-$RAILS_VERSION
# install rails 2.3.10 skipping system documentation
gem install rails -v $RAILS_VERSION --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment