Created
April 13, 2014 16:21
-
-
Save metrofx/10590821 to your computer and use it in GitHub Desktop.
Hubot custom launcher, using forever (https://github.com/nodejitsu/forever). Useful if you host Hubot in your own server.
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
#!/bin/sh | |
# Location: bin/hubot | |
# Hubot custom launcher, using forever (https://github.com/nodejitsu/forever). | |
# If you want to run hubot locally, don't call this script. run this instead: | |
# coffee node_modules/.bin/hubot | |
npm install | |
# put below path into hubot.env along with other hubot environment variables | |
# export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH" | |
source ../hubot.env | |
forever start --pidfile /var/run/hubot.pid -l /var/log/slackbot.log -a -c coffee node_modules/.bin/hubot --adapter slack --name slackbot --alias . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
What does the pidfile do? I don't have one I am trying to use hubot adapter with adapter but is not working. Any tips?