More Related Content
Similar to Sinatra and heroku for mac (20)
Sinatra and heroku for mac
- 1. 超初心者向け
Mac (Lion) で
Heroku and Sinatra
2012.07.19 @naoranger
- 3. Apple 様が配っている
Xcode
Command Line Tools for Xcode だけインスコという手もあるが、
素人は普通の入れとけ
- 6. Homebrew
$ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/
mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
え?見えない?
下からコピペしろ
- 7. rbenv
$ brew install rbenv
$ brew install ruby-build
zsh や bach_profile に追記
eval "$(rbenv init -)"
設定後にシェル再起動
- 10. heroku
当然垢は持ってるよな?
https://toolbelt.heroku.com/
Heroku Toolbelt for Mac OS X をダウソしてインスコ
- 11. ssh
$ ssh-keygen -t rsa -C "hoge@hoge.com"
Enter file in which to save the key (/Users/
you/.ssh/id_rsa): ファイル名
とりあえずファイル名は id_rsa_heroku にしといて
- 19. gem
$ gem install heroku sinatra bundler
bundler インスコ後にシェル再起動
$ bundle install
Gemfile.lock ができる
- 21. デプロイ
$ git add .
$ git commit -m hello world
$ git push heroku master
$ heroku open