Hubotをyoで作ってherokuにデプロイする

1
$ npm install -g yo generator-hubot
1
$ ndenv rehash
1
2
3
$ mkdir -p /path/to/my-hubot
$ cd /path/to/my-hubot
$ yo hubot
1
2
3
4
? Owner: (nqounet)
? Bot name: (slackbot)
? Description: (A simple helpful robot for your Company)
? Bot adapter: (slack)
1
2
3
4
5
$ git init
$ git add -A
$ git commit -m 'initial commit'
$ git remote add origin http://github.com/nqounet/slackbot-test.git
$ git push -u origin master
1
2
3
4
5
6
7
8
9
$ heroku login
$ heroku create
$ heroku rename nqounet-slackbot-test
$ heroku config:add TZ=Asia/Tokyo
$ heroku config:add HUBOT_SLACK_TEAM=nqounet
$ heroku config:add HUBOT_SLACK_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXX
$ heroku config:add HEROKU_URL=https://nqounet-slackbot-test.herokuapp.com/
$ heroku addons:add redistogo
$ git push heroku master
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy