Skip to content

Instantly share code, notes, and snippets.

@matutter
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save matutter/634dba562aa2ffd356b8 to your computer and use it in GitHub Desktop.

Select an option

Save matutter/634dba562aa2ffd356b8 to your computer and use it in GitHub Desktop.
Setup RoR
echo '--> Run me with sudo privileges'
echo '--> If an error about a signature occurs add the key holder in the error'
apt-get update
apt-get install curl
\curl -L https://get.rvm.io | bash -s stable --rails
source ~/.rvm/scripts/rvm
rvm install ruby-2.1.4
rvm use ruby-2.1.4
rails new sample
cd sample
echo "gem 'therubyracer', platforms: :ruby" >> Gemfile
bundle install
rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment