-
-
Save AhmedNadar/136e4a1959881d743501 to your computer and use it in GitHub Desktop.
This file contains 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
# 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.0.0-p247: | |
~/.rbenv/bin/rbenv install 2.0.0-p451 | |
~/.rbenv/bin/rbenv global 2.0.0-p451 | |
# Install bundler: | |
gem install bundler | |
# Rehash: | |
~/.rbenv/bin/rbenv rehash | |
# Restart nginx: | |
sudo service nginx start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment