简体   繁体   English

从Hubot删除Heroku设置?

[英]Remove Heroku setting from Hubot?

I tried running Hubot on Heroku, but I gave up because I'd prefer not to give out my credit card number. 我尝试在Heroku上运行Hubot,但我放弃了,因为我不想透露我的信用卡号码。

Instead, I tried running Hubot on my mac. 相反,我尝试在我的Mac上运行Hubot。 It gave an error, like this: 它给出了一个错误,如下所示:

$ ./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

I think this error occured because Hubot is looking for Heroku. 我认为这个错误发生了,因为Hubot正在寻找Heroku。 How do I remove this? 我该如何删除?

Try this. 试试这个。

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

Then find and remove the line that contains "hubot-heroku-keepalive" from file "external-scripts.json". 然后从文件“external-scripts.json”中查找并删除包含“hubot-heroku-keepalive”的行。

Run "bin/hubot" again. 再次运行“bin / hubot”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM