Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting Started with Ruby and Rails

Getting Started with Ruby and Rails

Decided I could stand to go over how I set rbenv, pow, and such all set up on a new computer.

Bryce "BonzoESC" Kerley

December 05, 2011
Tweet

More Decks by Bryce "BonzoESC" Kerley

Other Decks in Programming

Transcript

  1. Getting Started with Ruby and Rails Bryce Kerley, Ruby Brigade

    November 21, 2011 Sunday, November 20, 11
  2. Opinion Ruby 1.8.7 is dead Ruby 1.9.2 is good Ruby

    1.9.3 is better Sunday, November 20, 11
  3. What About Xcode Xcode 4.2 only includes LLVM GCC Ruby

    core team doesn’t support LLVM GCC Sunday, November 20, 11
  4. Lion: Install Homebrew 1. Open Terminal 2. /usr/bin/ruby -e "$(curl

    -fsSL https://raw.github.com/gist/323731)" 3. Enter your password 4. brew update Sunday, November 20, 11
  5. Lion: rbenv & ruby-build 1. brew update 2. brew install

    rbenv 3. brew install ruby-build Sunday, November 20, 11
  6. Lion: Pow 1. curl get.pow.cx | sh 2. cd yourapp

    3. ln -s `pwd` ~/.pow Sunday, November 20, 11
  7. Ubuntu: Dependencies sudo apt-get install curl zlib1g-dev libssl-dev libreadline6-dev libncursesw5-dev

    libxml2 libxml2-dev libxslt1-dev libsqlite3-dev nodejs git Sunday, November 20, 11
  8. Ubuntu: rbenv 1. git clone https://github.com/sstephenson/ rbenv.git .rbenv 2. echo

    ‘export PATH=”$HOME/.rbenv/bin:$PATH”’ >> ~/.bashrc 3. echo ‘eval “$(rbenv init -)”’ >> ~/.bashrc 4. exec $SHELL Sunday, November 20, 11
  9. Living With Bundler Love and version control your Gemfile Only

    version control Gemfile.lock if you’re deploying to Heroku Sunday, November 20, 11
  10. Rack App Servers Otherwise: unicorn Put it in your Gemfile,

    bundle exec unicorn Sunday, November 20, 11
  11. Postgres Caveats Install with Homebrew on Mac, and you may

    have to remove some files from /usr/bin At least: createdb, psql, pg_ctl Sunday, November 20, 11