$ brew install rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc # configure your bash profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc # configure your bash profile
$ echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile # configure your bash profile
$ echo 'test -f ~/.bashrc && source ~/.bashrc' >> ~/.bash_profile # configure your bash profile
$ source ~/.bash_profile # activate your bash profile in current terminal session
$ brew install rbenv-gem-rehash
$ brew install ruby-build
$ rbenv install 2.2.3
$ brew install git
$ rbenv rehash
$ git --version # make sure the new version is in use
$ git config --global user.name "Your name"
$ git config --global user.email [email protected]
$ brew install postgresql # may need to chown /usr/local/var/postgres
$ initdb /usr/local/var/postgres -E utf8 # initialize your computer's postgres db
$ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents # set postgres to run on computer startup
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist # start postgres now
$ brew install Caskroom/cask/java
$ brew install elasticsearch
$ ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents # set elasticsearch to run on computer startup
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist # start elasticsearch now
$ brew install redis
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
$ git clone https://github.com/triptate/starter_app
$ cd /starter_app
$ rbenv local 2.2.3
$ rbenv rehash
$ gem update --system
$ gem install bundler --no-rdoc --no-ri
$ bundle install
$ rake db:setup
$ rails s
$ foreman s # if you prefer...