Setting up a Mac/OSX for Rails development.
2018 Septemper update, using rbenv and pow.
Install Command Line Utils
$ xcode-select –install
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install node
$ brew install node
Install rbenv
$ brew install rbenv
$ rbenv init
Install ruby-build & others
$ brew install ruby-build
$ brew install imagemagick
Install mysql
$ brew install mysql
Add SSH to your git repo and clone into your mac.
cd to <project directory>
rbenv install <ruby version>
to check which version required rbenv version.
Install POW
sudo curl get.pow.cx | sh
$ cd ~/.pow
$ ln -s /path/to/myapp
Setup settings files;
database.yml
settings.yml
Create Database
Create your database.yml
$ bundle exec rake db:create
$ bundle exec rake db:migrate
$ bundle exec rake db:seed