Created
May 20, 2015 13:06
-
-
Save diegodurs/6fbc344725a9e2047f5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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