php in heroku

yandodさんのブログでherokuでもphpが動くらしい。
http://blog.candycane.jp/archives/1375

リンクをたどるとここにそのまま使えそうな手順(http://nkjmkzk.net/?p=2266)発見。
レッツ・チャレンジ!

  1. Heroku Toolbelt(https://toolbelt.herokuapp.com/) をインストール
  2. 公開鍵 生成
    • なければ ssh-keygenを実行
  3. 公開鍵 追加
    • heroku keys:add
  4. 手順実行(http://nkjmkzk.net/?p=2266)
    • git push heroku master で Permission denied (publickey). のエラーが発生。
    • git の configファイルを修正したら成功!
    • 2011-09-14
  5. Heroku > Myapps > (リポジトリ名) > Heroku URL のリンクをクリック!
  6. (手順どおりに作れば)Hello xxxx ! が表示。成功! or ?

ssh-keygenを実行

ssh-keygen -t rsa -C "yourmailaddress@mail.com"
Generating public/private rsa key pair.
Enter file in which to save the key:
Enter passphrase (empty for no passphrase):

git の configファイルを修正

Host heroku.com
User git
port 22
Hostname heroku.com
IdentityFile ~/.ssh/heroku_id_rsa
TCPKeepAlive yes
IdentitiesOnly yes

IdentityFile ~/.ssh/heroku_id_rsa ←は自分の秘密鍵(.pubじゃないほう)