Skip to content

Instantly share code, notes, and snippets.

@diegodurs
Created May 20, 2015 13:06
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 diegodurs/6fbc344725a9e2047f5d to your computer and use it in GitHub Desktop.
Save diegodurs/6fbc344725a9e2047f5d to your computer and use it in GitHub Desktop.
# Ruby API server install
# ------------------------
# instal dev tool: git for clone, gcc & make to compile ruby, libssl-dev to compile ssl for ruby
# g++ is for gem dependencies
sudo apt-get install gcc git make libssl-dev g++
# instal rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
# restart shell yipiiie
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install -l
rbenv install 2.2.2
rbenv global 2.2.2
gem install bundler
# Yay ! Now we need to deploy the app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment