heroku create -bをhkで

せっかくgolang webappなんだからheroku commandじゃなくhkでデプロイしたい。

と思ったけど、hk create -b なくて、herokuあんまり触ったことなく知らなくて、一瞬どうせheroku commandいるんだ...的なテンションになってたけど、

$ hk create
$ hk set BUILDPACK_URL=https://github.com/kr/heroku-buildpack-go.git

すれば良い。

他は大体 http://mmcgrana.github.io/2012/09/getting-started-with-go-on-heroku.html 参考にすれば良いと思う。

c.f. https://github.com/heroku/heroku/blob/69cb44a2945abdc3eecef3c99ed3f91ef1e2d715/lib/heroku/command/apps.rb#L268

それとは関係なく、v20131205ぐらいのバージョン使ってたら、hk create後のherokuからのjsonがunmarshalできないのかエラー出るのでupdateすると良い。