Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bouzuya/cd5aad482d6c7c92f236 to your computer and use it in GitHub Desktop.
Save bouzuya/cd5aad482d6c7c92f236 to your computer and use it in GitHub Desktop.
Hubot を Heroku で動かして Slack から話す ref: http://qiita.com/bouzuya/items/2a200c9e8a45e2478bc2
$ pwd
/home/bouzuya/uran
$ npm list hubot-slack
uran@0.0.0 /home/bouzuya/uran
└── hubot-slack@2.2.0
$ npm install --save hubot-slack
hubot-slack@2.2.0 node_modules/hubot-slack
$ npm list hubot-slack
uran@0.0.0 /home/bouzuya/uran
└── hubot-slack@2.2.0
$ cat Procfile
web: bin/hubot -a slack -n uran
$ git init
Initialized empty Git repository in /home/bouzuya/uran/.git/
$ git add -A
$ git commit -m 'initial commit'
[master (root-commit) 4d258e3] initial commit
10 files changed, 329 insertions(+)
create mode 100644 .editorconfig
create mode 100644 .gitignore
create mode 100644 Procfile
create mode 100644 README.md
create mode 100755 bin/hubot
create mode 100644 bin/hubot.cmd
create mode 100644 external-scripts.json
create mode 100644 hubot-scripts.json
create mode 100644 package.json
create mode 100644 scripts/example.coffee
$ heroku create
Creating damp-atoll-2068... done, stack is cedar-14
https://damp-atoll-2068.herokuapp.com/ | git@heroku.com:damp-atoll-2068.git
Git remote heroku added
$ git push heroku master
...(略)...
$ heroku config:set \
> HUBOT_SLACK_TOKEN=go7CWIlD19muTtqBflqnw3Mk \
> HUBOT_SLACK_TEAM=bouzuya \
> HUBOT_SLACK_BOTNAME=uran
Setting config vars and restarting damp-atoll-2068... done, v4
HUBOT_SLACK_BOTNAME: uran
HUBOT_SLACK_TEAM: bouzuya
HUBOT_SLACK_TOKEN: go7CWIlD19muTtqBflqnw3Mk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment