Pages

Monday, July 1, 2013

Install Rails on Mac


Get Rails installed on your Mac from scratch

These steps are the simplest way that I've found to get up and running quickly with a Rails development environment.  If you plan on deploying to Heroku, you'll want to go ahead and install the PostgreSQL database instead of using the default Sqlite database.
  1. Xcode
  2. Command Lines Tools (GCC)
    • Open Xcode -> Preferences -> Downloads
    • Download the Command Line Tools
  3. RVM (latest stable)
    • $ \curl -L https://get.rvm.io | bash -s stable
  4. Ruby (latest stable)
    • $ rvm install ruby
  5. Rails (latest stable)
    • $ gem install rails

Optional but recommended

  1. Homebrew
    • $ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
  2. PostgreSQL
    • $ brew install postgres

No comments: