Last active
August 29, 2015 14:10
-
-
Save bouzuya/cd5aad482d6c7c92f236 to your computer and use it in GitHub Desktop.
Hubot を Heroku で動かして Slack から話す ref: http://qiita.com/bouzuya/items/2a200c9e8a45e2478bc2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pwd | |
/home/bouzuya/uran | |
$ npm list hubot-slack | |
uran@0.0.0 /home/bouzuya/uran | |
└── hubot-slack@2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat Procfile | |
web: bin/hubot -a slack -n uran |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 | |
...(略)... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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