Skip to content

Instantly share code, notes, and snippets.

@eendroroy
Created May 2, 2017 11:11
Show Gist options
  • Save eendroroy/5218e0416486eeaae15bb347823d8aeb to your computer and use it in GitHub Desktop.
Save eendroroy/5218e0416486eeaae15bb347823d8aeb to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# install rbenv
wget https://raw.githubusercontent.com/eendroroy/loki-bootstrap/master/customs/rbenv.sh -O - | bash
# set paths
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
# install mysql
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install -y mysql-client mysql-server libmysqlclient-dev
# Install a couple rubies
rbenv install 1.8.7-p358
rbenv install 1.9.3-p125
rbenv rehash
rbenv global 1.9.3-p125
rbenv rehash
# set local ruby
rbenv local 1.8.7-p358
# bundle install
gem install bundler
bundle config --local path vendor
bundle install
bundle exec gem env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment