Herokuはじめ

Railsとgitは前回のエントリでインストール済みです。

Herokuのアカウント作成

http://heroku.com/
でsignup

"heroku" gemのインストール

$ gem install heroku
Successfully installed rest-client-1.6.1
Successfully installed configuration-1.2.0
Successfully installed launchy-0.3.7
Successfully installed json_pure-1.4.6
Successfully installed heroku-1.14.8
5 gems installed
…

gemをインストールしたら、公開鍵を作成?するのがお勧めだそうな。

$ heroku keys:add
Uploading ssh public key C:\Documents and Settings\***/.ssh/id_rsa.pub
Enter your Heroku credentials.
Email: hoge@hoge.com
Password:
Uploading ssh public key C:\Documents and Settings\***/.ssh/id_rsa.pub

SSH Keyの作成

gitからHerokuにuploadするため。
Git GUIのヘルプ>SSHキーを表示>鍵を作成

あとは以下エントリを参考に…

http://hamasyou.com/archives/000348

$ rails new test_app
$ cd test_app #忘れるとエラい目に
$ git init
$ git add .
$ git commit -m "rails new test_app"
$ heroku create
$ heroku stack
$ heroku stack:migrate bamboo-mri-1.9.2
$ git push heroku master