aanoaa / p5-hubot

hubot perl port
15 stars 3 forks source link

run on heroku #25

Closed aanoaa closed 11 years ago

aanoaa commented 11 years ago

https://github.com/aanoaa/heroku-buildpack-perl

aanoaa commented 11 years ago

Procfile 의 기능에 대해 알아봐야 합니다.

aanoaa commented 11 years ago
aanoaa commented 11 years ago

original 버전에 왜 --create 옵션이 있나 했더니 heroku 에 올리려고 하니까 감이 옵니다.

CPAN 패키지에서는 실행옵션을 제공하지만 각 서비스마다 옵션을 다르게 해서 프로세스를 띄울 수 있습니다.

# export HUBOT_IRC_SERVER='irc.example.com'
$ hubot -a <adapter> -n <name>

예로, adapter 가 추가되었을때 cpanfile 을 수정해서 추가해주어야만 서비스를 돌릴 수 있습니다.

테스트는 성공했으니, 의미를 더 명확하게 파악하고 알맞게 고쳐서 사용해야 합니다.

aanoaa commented 11 years ago
$ bin/hubot --create <path>
# or
$ hubot -c <path>
에 deployable hubot 저장소를 만들어줘야 합니다.
aanoaa commented 11 years ago
2013-06-09T13:17:16.256886+00:00 heroku[web.1]: Starting process with command `perl -Ilib -Ilocal/lib/perl5 bin/hubot -a irc`
2013-06-09T13:18:17.857369+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2013-06-09T13:18:17.857764+00:00 heroku[web.1]: Stopping process with SIGKILL
2013-06-09T13:18:19.185383+00:00 heroku[web.1]: Process exited with status 137
2013-06-09T13:18:19.200367+00:00 heroku[web.1]: State changed from starting to crashed
2013-06-09T13:18:22.594168+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path=/hubot/ping host=guarded-dawn-4542.herokuapp.com fwd="50.16.40.127" dyno= connect= service= status=503 bytes=

도중에 죽습니다.

aanoaa commented 11 years ago

Procfile 의 기능에 대해 알아봐야 합니다.

https://devcenter.heroku.com/articles/procfile

aanoaa commented 11 years ago

https://github.com/aanoaa/heroku-buildpack-perl 를 참고해서 실행합니다.