New Installs for Mac 10.10 Yosemite
Install Sublime
open ~/.bash_profile
If the following is not there already, add
export PATH=/usr/local/bin:$PATH
Create softlink from app to bin to use sublime in terminal
! the softlink name determines the terminal command name
sublime .
opens current folder as project in Sublime
Note: Check the name of the app in Applications, update as needed
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
Install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Ruby 2.2 / rbenv
Install rbenv
brew install rbenv ruby-build
Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile source ~/.bash_profile
Install Ruby
rbenv install 2.2.2 rbenv global 2.2.2 ruby -v
Install Rails
gem install rails -v 4.2.1
Update rbenv to see new rails
rbenv rehash
Install PostGres
brew install postgresql
Softlink Postgres to User LaunchAgents folder to start on signin
mkdir -p ~/Library/LaunchAgents ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents/
start postgres / restart or use the following
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Create a rails app to test
If you want to use Postgres
Note you will need to change config/database.yml’s username to be
the same as your OSX user account. (for example, mine is ‘chris’)
rails new myapp -d postgresql
Move into the application directory
cd myapp
Create the database
rake db:create
if you get the following error
connections on Unix domain socket “/tmp/.s.PGSQL.5432”?
remove the postgres gem and use bundle install to reinstall the correct version
gem uninstall pg bundle install rake db:create rails server
Use Puma as WebServer
gem install puma
Add this to the Gemfile
\#use puma webserver gem 'puma'
Run Bundle install
bundle install
created via trail by fire and a handful of sites including
https://gorails.com/setup/osx/10.10-yosemite