Herokuにgithub経由でアップ

heroku loginの前にssh-keygenでssh-keyを作成しておく
$ heroku login
Email:
Password:
Found the following SSH public keys:
1)
2)
3)
.
.
which would you like to use with your heroku account?
と聞かれるので、
Found the following SSH public keys:
の下にあるリストから,heroku login前に用意しておいたssh-keyの番号を選択してEnter

heroku addons:add heroku postgresql -> 飛ばしても構わなさ気

heroku create

git push heroku master


$ heroku create
$ git push heroku master
$ heroku run rake db:migrate


もし Heroku のデプロイに失敗したときは、次のコマンドを試してみてください。

$ rake assets:precompile
$ git add .
$ git commit -m "Add precompiled assets for Heroku"
$ git push heroku master

heroku open -> ブラウザでpushしたサイトを表示