Skip to content

Instantly share code, notes, and snippets.

@JpEncausse
Last active January 2, 2017 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JpEncausse/20af7c946e4bb105ac7da7f24a287ca5 to your computer and use it in GitHub Desktop.
Save JpEncausse/20af7c946e4bb105ac7da7f24a287ca5 to your computer and use it in GitHub Desktop.
PWM-MSBOT: start.sh
#!/bin/bash
# Set the path to bot's configuration
export BOTBUILDER_CFG="/home/user/path/to/data/config.json"
# Set the port
export PORT=1880
# Run Node-RED from PM2
~/.nvm/versions/node/v6.6.0/lib/node_modules/pm2/bin/pm2 \
start \
/home/user/path/to/node-red/red.js --name="SampleBot" -- -s ./data/node-red-config.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment