BoG/start-abog.sh

14 lines
363 B
Bash
Executable File

# Use this script to start or restart a rocket.chat bog instance
[[ -f .env ]] && source .env
export RESPOND_TO_DM=true
export RESPOND_TO_EDITED=true
export LISTEN_ON_ALL_PUBLIC=false
export TOOL="axiomchat"
if [[ $(pm2 pid abog) ]]; then
pm2 restart abog
else
pm2 start node_modules/.bin/coffee -n abog -- node_modules/.bin/hubot --name bog -a rocketchat
fi