0
我在heroku部署了簡單的hubot應用程序。我已經設置了procfile及其運行正常,當我檢查使用heroku logs -t
如何在heroku上部署hubot
咖啡腳本日誌:
module.exports =(機器人) - >
robot.hear /room/i, (res) ->
res.send "welcome " + res.message.room
procfile:
web: bin/hubot -a campfire --name rsc
日誌:
2016-12-17T11:20:53.198149+00:00 heroku[web.1]: Restarting
2016-12-17T11:20:53.198657+00:00 heroku[web.1]: State changed from up to startin
g
2016-12-17T11:20:53.978046+00:00 heroku[web.1]: Stopping all processes with SIGT
ERM
2016-12-17T11:20:54.099831+00:00 heroku[web.1]: Process exited with status 0
2016-12-17T11:20:54.832775+00:00 heroku[web.1]: Starting process with command `b
in/hubot -a campfire --name rsc`
2016-12-17T11:21:00.807546+00:00 heroku[web.1]: State changed from starting to u
p
2016-12-17T11:21:00.535290+00:00 app[web.1]: [Sat Dec 17 2016 11:21:00 GMT+0000
(UTC)] ERROR hubot-heroku-alive included, but missing HUBOT_HEROKU_KEEPALIVE_URL
. `heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s | grep we
b-url | cut -d= -f2)`
2016-12-17T11:21:00.675448+00:00 app[web.1]: [Sat Dec 17 2016 11:21:00 GMT+0000
(UTC)] INFO hubot-redis-brain: Discovered redis from REDISCLOUD_URL environment
variable
2016-12-17T11:21:00.768728+00:00 app[web.1]: [Sat Dec 17 2016 11:21:00 GMT+0000
(UTC)] INFO hubot-redis-brain: Successfully authenticated to Redis
2016-12-17T11:21:00.784649+00:00 app[web.1]: [Sat Dec 17 2016 11:21:00 GMT+0000
(UTC)] INFO hubot-redis-brain: Data for hubot brain retrieved from Redis
現在從哪裏ping到hubot?從篝火網站?我沒有,但它沒有響應
,但我從我正確的地方查驗?從篝火聊天室? – Satyadev