【问题标题】:Remove Heroku setting from Hubot?从 Hubot 中删除 Heroku 设置?
【发布时间】:2015-06-05 02:50:05
【问题描述】:

我尝试在 Heroku 上运行 Hubot,但我放弃了,因为我不想透露我的信用卡号。

相反,我尝试在我的 Mac 上运行 Hubot。它给出了一个错误,如下所示:

$ ./bin/hubot
hubot-sample> [Fri Jun 05 2015 11:41:52 GMT+0900 (JST)] ERROR hubot-heroku-alive included, but missing HUBOT_HEROKU_KEEPALIVE_URL. `heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s  | grep web_url | cut -d= -f2)`
[Fri Jun 05 2015 11:41:52 GMT+0900 (JST)] INFO Using default redis on localhost:6379

我认为发生此错误是因为 Hubot 正在寻找 Heroku。如何删除它?

【问题讨论】:

  • @awesomebing1 感谢您的编辑。

标签: heroku hubot


【解决方案1】:

试试这个。

cd <your-hubot-project-dir>
npm uninstall hubot-heroku-keepalive --save

然后从文件“external-scripts.json”中找到并删除包含“hubot-heroku-keepalive”的行。

再次运行“bin/hubot”。

【讨论】:

  • 谢谢。抱歉回复晚了。你的帖子对我有帮助。
  • 还必须从 external-scripts.json 中删除 hubot-heroku-keepalive,否则在加载外部脚本时仍然会出现 module not found 错误。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-05-20
  • 2021-04-28
  • 1970-01-01
  • 2015-09-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多