-
-
Save JpEncausse/20af7c946e4bb105ac7da7f24a287ca5 to your computer and use it in GitHub Desktop.
PWM-MSBOT: start.sh
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/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