Skip to content

Instantly share code, notes, and snippets.

@ngdelcastillo
Forked from m-gagne/rbenv-install.sh
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngdelcastillo/782d4738bd0d5e55d252 to your computer and use it in GitHub Desktop.
Save ngdelcastillo/782d4738bd0d5e55d252 to your computer and use it in GitHub Desktop.
# Update, upgrade and install development tools:
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
# Add rbenv to the path:
echo 'export RBENV_ROOT=~/.rbenv' >> ~/.bash_profile
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
eval "$(rbenv init -)"
# Install ruby-build:
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
sudo ./install.sh
# Install Ruby 2.1.2:
~/.rbenv/bin/rbenv install 2.1.2
~/.rbenv/bin/rbenv global 2.1.2
# Install bundler:
gem install bundler
# Rehash:
~/.rbenv/bin/rbenv rehash
# Restart nginx:
sudo service nginx start
# Setup Postgre:
sudo apt-get -y install postgresql postgresql-contrib libpq-dev
# Update, upgrade and install development tools:
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx
# Install RVM
curl -sSL https://get.rvm.io | bash -s stable --ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment