#01-01 [perl,MoE]ログイン数のリアルタイム表示をHerokuで
自分のサイトでやってるやつをPSGIで書きなおしてHerokuにdeploy...と思い立ったので miyagawa/heroku-buildpack-perl を使ってみたところ
-----> Fetching custom git buildpack... done
-----> Perl/PSGI app detected
-----> Bootstrapping cpanm
-----> Installing dependencies
/tmp/buildpack_b77d3c0d-2a81-44a0-93bc-59c252147ccd/bin/compile: 28: cpanm: not found
-----> Installing Starman
/tmp/buildpack_b77d3c0d-2a81-44a0-93bc-59c252147ccd/bin/compile: 31: cpanm: not found
-----> Discovering process types
Procfile declares types -> (none)
Default types for Perl/PSGI -> web
-----> Compressing... done, 0K
-----> Launching... done, v5
ん? と思って原因を調べてみたら、githubがraw.githubusercontent.comにコンテンツ置くようになってリダイレクトしていたので
cpanmが取得できなくてエラーになっていた。(ことに気がつくまで約1時間・・Heroku初めてなんです!!)
issueを出したら素早く修正されて
-----> Fetching custom git buildpack... done
-----> Perl/PSGI app detected
-----> Bootstrapping cpanm
Successfully installed version-0.9908 (upgraded from 0.77)
Successfully installed Module-Metadata-1.000022
Successfully installed JSON-PP-2.27203
Successfully installed Test-Simple-1.001003 (upgraded from 0.92)
Successfully installed CPAN-Meta-YAML-0.012
Successfully installed Parse-CPAN-Meta-1.4414 (upgraded from 1.39)
Successfully installed CPAN-Meta-Requirements-2.125
Successfully installed CPAN-Meta-2.141170
Successfully installed Perl-OSType-1.007
Successfully installed ExtUtils-CBuilder-0.280216 (upgraded from 0.2602)
Successfully installed ExtUtils-ParseXS-3.24 (upgraded from 2.2002)
Successfully installed Module-Build-0.4205 (upgraded from 0.340201)
Successfully installed App-cpanminus-1.7004
13 distributions installed
-----> Installing dependencies
:
:
:
-----> Discovering process types
Procfile declares types -> (none)
Default types for Perl/PSGI -> web
-----> Compressing... done, 2.5MB
-----> Launching... done, v5
http://moestats.herokuapp.com/ deployed to Heroku
おお、入った入った。
こちらになります。Master of Epic login status