2020-09-04 02:33:43 +02:00
|
|
|
# Use this script to start or restart a rocket.chat bog instance
|
|
|
|
|
2020-09-04 01:46:26 +02:00
|
|
|
[[ -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
|