Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
NosqlBA - 2017 - Script para ambiente Rails no Ubuntu 16.04
sudo apt update
sudo apt dist-upgrade -y
# server tools
sudo apt -y install git nodejs
# Ruby dependencies
sudo apt -y build-dep ruby
sudo apt install -y \
make build-essential libc6-dev libssl-dev libffi-dev \
libreadline6-dev libreadline-dev zlib1g-dev libyaml-dev
# Se quiser utilizar postgresql - use esta linha
# sudo apt install -y postgresql
# Se quiser utilizar mysql - use esta linha
# sudo apt install -y mysql-server
# Se quiser utilizar mongodb - use esta linha
# sudo apt install -y mongodb
# Gem dependencies, Nokogiri, Databases
sudo apt -y install \
libpq-dev libmysql++\-dev libsqlite3-dev \
libxml2-dev libxslt-dev imagemagick
git clone ~/.rbenv
git clone ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
rbenv install 2.4.1
rbenv global 2.4.1
rbenv rehash
gem install bundler
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment