Skip to content

Instantly share code, notes, and snippets.

@metrofx
Created April 13, 2014 16:21
Show Gist options
  • Save metrofx/10590821 to your computer and use it in GitHub Desktop.
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.
#!/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 .
@wickr-pak
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment