- Create a new custom cookbook for Hubot
- Create a Node.js stack and an app on OpsWorks
- Set the recipe in "Deploy" section
Put two files as below:
- hubot/recipes/deploy.rb
- hubot/templates/default/bin_hubot.erb
hubot
is the name of cookbook for example.
See deploy.rb
and bin_hubot.erb
in this Gist for the details.
Set the following environment variables:
- BOT_NAME
- BOT_ADAPTER
OpsWorks built-in recipe installs very old version of Node.js as of Apr. 14th 2017. To use a new version of Node.js, set the following recipe on "Setup" section.