LoginSignup
32
32

More than 5 years have passed since last update.

hubotをherokuで動かす

Last updated at Posted at 2012-03-16

hubot: GitHubで使われているCampfire用のbot.IRCやTwilloなどのインターフェースもある.
https://github.com/github/hubot
HubotをGitHubがどう使っているかは以下のリンク参照
http://www.slideshare.net/rubymeetup/inside-github-with-chris-wanstrath
http://speakerdeck.com/u/schacon/p/robots-beer-and-maslow
http://speakerdeck.com/u/holman/p/how-github-uses-github-to-build-github

mkdir ~/hubot
cd ~/hubot
wget --no-check-certificate https://github.com/downloads/github/hubot/hubot-1.0.3.tar.gz
tar zxvf hubot-1.0.3.tar.gz
cd hubot
git init
git add .
git commit -m 'initial commit'
heroku create --stack cedar
git push heroku master
heroku ps:scale app=1
# redis用サーバーを追加するにはherokuアカウントのverificationが必要
heroku addons:add redistogo:nano

# IRCbotとして動かす場合
heroku config:add HUBOT_IRC_SERVER="irc.freenode.net"
# 参加させるチャンネルを comma区切りで指定
heroku config:add HUBOT_IRC_ROOMS="#github,#node.js"
heroku config:add HUBOT_IRC_NICK="I_AM_HUBOT"
32
32
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
32
32