Heroku-Ruby1.9-Rails3

Heroku

Rubyで作成したWebアプリ(RailsとかSinatraとか)をホスティングしてくれる無料サービス
つまり、自分で作ったWebアプリをサーバーとか借りずに公開することができる嬉しいサービスです
さらに、Gitリポジトリのコミットをフックしてデプロイしてくれるという優れもの。

使わない手はない!

登録

Heroku(https://heroku.com/)へアクセス
Sign upボタンを押してメールアドレスを入力
メールが送られてくるのでリンクをクリックしてパスワードを設定。
これで登録は終わり。

gemのインストール

gem install heroku

Successfully installed mime-types-1.16
Successfully installed rest-client-1.4.2
Successfully installed configuration-1.1.0
Successfully installed launchy-0.3.7
Successfully installed heroku-1.10.6
5 gems installed
Installing ri documentation for mime-types-1.16...
Installing ri documentation for rest-client-1.4.2...
Installing ri documentation for configuration-1.1.0...
Installing ri documentation for launchy-0.3.7...
Installing ri documentation for heroku-1.10.6...
Updating class cache with 3723 classes...
Installing RDoc documentation for mime-types-1.16...
Installing RDoc documentation for rest-client-1.4.2...
Installing RDoc documentation for configuration-1.1.0...
Installing RDoc documentation for launchy-0.3.7...
Installing RDoc documentation for heroku-1.10.6...

Ruby 1.9

個人的理由によりRubyを共存させる必要があるのでrvm環境で

rvm install 1.9.1
rvm use 1.9.1

Rails3.0

gem install rails











あとで肉付け