permalink | layout |
---|---|
/docs/deploying/windows/index.html |
docs |
Hasn't been fully tested - YMMV
There are 3 primary things to deploying and running hubot:
- node and npm
- a way to get source code updated on the server
- a way to start hubot, start it up if it crashes, and restart it when code updates
To start, your windows server will need node and npm. The best way to do this is with chocolatey using the nodejs.install package. I've found that sometimes the system path variable is not correctly set; ensure you can run node/npm from the command line. If needed set the PATH variable with "setx PATH "%PATH%;C:\Program Files\nodejs" "
The simplest way to update your hubot's code is going to be to have a git checkout of your hubot's source code (that you've created during Getting Started, not the github/hubot repository, and just git pull to get change. This may feel a dirty hack, but it works when you are starting out.
Every hubot install has a bin/hubot
script to handle starting up the hubot.
You can run this command from your git checkout on the server, but there are some problems you can encounter:
- you disconnect, and hubot dies
- hubot dies, for any reason, and doesn't start again
- it doesn't start up at boot automatically
Not yet fleshed out. Help contribute by submitting a pull request, please?