alphawing meets heroku

Preview:

Citation preview

Alphawing meets Heroku2015-02-28 kayac 技術部

KAMEDAkyosuke

profile

• KAYAC 技術部

• iOS/Android/FirefoxOS のアプリ開発専門

• 生 socket と音が得意

• LobiRecSDK を作っている

最近書いた go

• https://gist.github.com/KAMEDAkyosuke/f567feb7c628821874b6

Alphawing とは

• golang

• testflight

• OSS (https://github.com/kayac/alphawing)

heroku

あれ? golang サポートしてなくね?

appengine にするか…

って思ったら buildpack って 仕組みがあるみたい

buildpack

• When you git push heroku, Heroku’s slug compiler prepares your code for execution by the Heroku dyno manager. At the heart of the slug compiler is a collection of scripts called a buildpack.

custom buildpack

• Custom buildpacks can be used to support languages or frameworks that are not convered by Heroku’s default buildpacks. For a list of known third-party buildpacks, see Third-Party Buildpacks.

see. https://devcenter.heroku.com/articles/buildpacks

heroku-buildpack-go

• https://github.com/kr/heroku-buildpack-go

これでいける!!

see. https://github.com/kayac/alphawing/blob/master/README.md

$ /path/to/build/output/folder/run.sh

とか明らかに heroku で動かなそう

そもそも alphawing は revel ってフレームワークで

動くみたい

heroku-buildpack-go-revel

• https://github.com/revel/heroku-buildpack-go-revel

あ、いけそう!!

いけた

課題

• 永続層を使用していない( Heroku 上では現在ん SQLite のオンメモリで動かしている。 PosgreSQL 対応すればいけそう)

• google apps でドメインを持っていないと制限かけづらい。(今後管理機能を実装予定のこと)