Skip to content

Instantly share code, notes, and snippets.

@shashankmehta
Forked from abhshkdz/hubot.sh
Created August 29, 2012 09:02
Show Gist options
  • Save shashankmehta/3508831 to your computer and use it in GitHub Desktop.
Save shashankmehta/3508831 to your computer and use it in GitHub Desktop.
Building up Hubot on Gtalk (deployed on Heroku)
wget https://github.com/downloads/github/hubot/hubot-2.2.0.tar.gz
tar zxvf hubot-*.tar.gz
cd hubot/
vim Procfile
app: bin/hubot -a gtalk -n Hubot
vim package.json
{
"name": "hosted-hubot",
"version": "2.2.0",
"author": "GitHub Inc.",
"keywords": "github hubot campfire bot",
"description": "A simple helpful Robot for your Company",
"licenses": [{
"type": "MIT",
"url": "http://github.com/github/hubot/raw/master/LICENSE"
}],
"repository" : {
"type" : "git",
"url" : "http://github.com/github/hubot.git"
},
"dependencies": {
"hubot-gtalk": ">= 0.0.1",
"hubot": ">= 2.2.0",
"hubot-scripts": ">=2.0.8",
"optparse": ">= 1.0.3"
},
"engines": {
"node": "0.6.x",
"npm": "1.0.x"
}
}
git init
git add .
git commit -m "initial commit"
heroku create --stack cedar
git push heroku master
heroku ps:scale app=1
heroku addons:add redistogo:nano //Requires verified Heroku account
//If you dont't have a verified Heroku account, delete reddis.coffee from the file 'hubot-scripts.json'
heroku config:add HUBOT_GTALK_USERNAME="example@domain.com" HUBOT_GTALK_PASSWORD="account password"
heroku ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment