-
-
Save ngdelcastillo/782d4738bd0d5e55d252 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.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 | |
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 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