Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting Started with Ruby and Rails
Search
Bryce "BonzoESC" Kerley
December 05, 2011
Programming
7
500
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
Share
More Decks by Bryce "BonzoESC" Kerley
See All by Bryce "BonzoESC" Kerley
Ruby in 2020
bryce
1
87
Rails and the Internet of Things
bryce
1
56
It's Not Ruby, But…
bryce
0
43
Ruby 2.5: What's New and What's Cool
bryce
0
57
docker for rubyists
bryce
0
98
Would You Like To Make A Game?
bryce
0
49
WebSockets and ActionCable
bryce
0
77
How I Learned to Stop Worrying and Like RSpec
bryce
0
66
How Do Computers Even Work?
bryce
1
180
Other Decks in Programming
See All in Programming
Go言語でターミナルフレンドリーなAIコマンド、afaを作った/fukuokago20_afa
monochromegane
2
140
Vue SFCのtemplateでTypeScriptの型を活用しよう
tsukkee
3
1.6k
Hotwire or React? ~Reactの録画機能をHotwireに置き換えて得られた知見~ / hotwire_or_react
harunatsujita
9
4.6k
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
10
1.1k
PHP でアセンブリ言語のように書く技術
memory1994
PRO
1
150
開発効率向上のためのリファクタリングの一歩目の選択肢 ~コード分割~ / JJUG CCC 2024 Fall
ryounasso
0
380
色々なIaCツールを実際に触って比較してみる
iriikeita
0
290
Pinia Colada が実現するスマートな非同期処理
naokihaba
2
170
Kaigi on Rails 2024 - Rails APIモードのためのシンプルで効果的なCSRF対策 / kaigionrails-2024-csrf
corocn
5
3.6k
2万ページのSSG運用における工夫と注意点 / Vue Fes Japan 2024
chinen
3
1.4k
Identifying User Idenity
moro
6
8.7k
推し活の ハイトラフィックに立ち向かう Railsとアーキテクチャ - Kaigi on Rails 2024
falcon8823
6
2.4k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
49k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Embracing the Ebb and Flow
colly
84
4.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
328
21k
Docker and Python
trallard
40
3.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
23k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
RailsConf 2023
tenderlove
29
880
Build The Right Thing And Hit Your Dates
maggiecrowley
32
2.4k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Transcript
Getting Started with Ruby and Rails Bryce Kerley, Ruby Brigade
November 21, 2011 Sunday, November 20, 11
What I Like Today rbenv ruby-build pow Sunday, November 20,
11
rbenv Simple Ruby Version Management http://git.io/rbenv Sunday, November 20, 11
ruby-build Compile and Install Ruby http://git.io/rbbuild Sunday, November 20, 11
pow Zero-config Rack Server for Mac http://pow.cx Sunday, November 20,
11
Opinion Ruby 1.8.7 is dead Ruby 1.9.2 is good Ruby
1.9.3 is better Sunday, November 20, 11
Opinion Bundler rocks Sunday, November 20, 11
Opinion Don’t Use Windows Sunday, November 20, 11
Operating Systems Mac OS X 10.7 Lion Ubuntu 11.10 Oneiric
Ocelot Sunday, November 20, 11
Lion Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: Install GCC Install GCC Without Xcode http://git.io/osxgcc Sunday, November
20, 11
What About Xcode Xcode 4.2 only includes LLVM GCC Ruby
core team doesn’t support LLVM GCC Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: Install Homebrew Package Manager for OS X http://git.io/homebrew Sunday,
November 20, 11
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
Lion: Install Homebrew Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: rbenv & ruby-build 1. brew update 2. brew install
rbenv 3. brew install ruby-build Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: Installing Ruby 1. rbenv install 1.9.3-p0 2. rbenv global
1.9.3-p0 Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 Sunday, November 20, 11
Lion: Pow 1. curl get.pow.cx | sh 2. cd yourapp
3. ln -s `pwd` ~/.pow Sunday, November 20, 11
Ubuntu Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
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
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
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
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Ubuntu: ruby-build 1. git clone https://github.com/sstephenson/ ruby-build.git 2. cd ruby-build
3. sudo ./install.sh Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Ubuntu: Installing Ruby 1. rbenv install 1.9.3-p0 2. rbenv global
1.9.3-p0 Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Living With It Sunday, November 20, 11
Living With rbenv After installing rubies or gems: rbenv rehash
Sunday, November 20, 11
Living With rbenv Per-project Ruby Version rbenv local ree-1.8.7 Sunday,
November 20, 11
Living With rbenv Per-Shell Ruby Version rbenv shell ree-1.8.7 Sunday,
November 20, 11
Living With rbenv List Installed Rubies rbenv versions Sunday, November
20, 11
Living With Bundler Install Dependencies bundle install Sunday, November 20,
11
Living With Bundler Update Dependencies bundle update Sunday, November 20,
11
Living With Bundler Alias “bundle exec” to “be” alias be=”bundle
exec” Sunday, November 20, 11
Living With Bundler Love and version control your Gemfile Only
version control Gemfile.lock if you’re deploying to Heroku Sunday, November 20, 11
Rack App Servers Zero-config, Mac-only pow curl get.pow.cx | sh
Sunday, November 20, 11
Rack App Servers Otherwise: unicorn Put it in your Gemfile,
bundle exec unicorn Sunday, November 20, 11
Rack App Servers If you love configuration passenger For Apache
or Nginx Sunday, November 20, 11
Databases It’s already set up sqlite3 Seriously, check the Gemfile
in a new Rails app Sunday, November 20, 11
Databases The Best postgres Heroku uses this Sunday, November 20,
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
Links These slides: http://db.tt/EDrpfQzu rbenv: http://git.io/rbenv ruby-build: http://git.io/ruby-build pow: http://pow.cx
bundler: http://gembundler.com Sunday, November 20, 11