Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rubycasts apprenticeship osx setup

SETUP

This README is to help prepare your environment for developing with the Rubycasts team and guide you through setting up the rest of the tools that we use (i.e. Zoom).

Disclaimer: these instructions assume you are on OSX. If you have a different OS, you'll have to find alternate resources to get you through the various steps.

Preparing for setup

Start by removing RVM and Rbenv and any references to them in your ~/.bashrc ~/.bash_profile ~/.zshrc ~/.profile

These will get in the way of a better, newer tool, Chruby. Have no fear, gemsets suck and so does bundle exec.

Install homebrew (OSX)

Homebrew is the preferred package manager for OSX machines. Go to The homebrew page and follow the instructions there.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Redis

Install redis-server via homebrew. You will need to run this whenever you run the rubycasts.io website.

brew install redis

Install Postrgresql

brew install postgresql

Install Ruby

At rubycasts we manage Ruby versions with chruby and ruby-install, with the former being the 'manager' and the second being the 'installer'.

To do so, go to The chruby github page and follow the instructions:

brew install chruby
brew install ruby-install

echo '
if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
  source /usr/local/share/chruby/chruby.sh
  source /usr/local/share/chruby/auto.sh
fi' > /etc/profile.d/chruby.sh

source ~/.bash_profile (or ~/.bashrc or .zshrc depending)

ruby-install ruby
chruby ruby

Github and Bundler

Let's check what ruby you are using first:

which ruby

If the path was in your home directory under .rubies you are on the right ruby. If you get /usr/bin/ruby you are on your system Ruby. If so:

chruby ruby
which ruby

Now install Bundler:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.