node-red-run/run

6 lines
315 B
Plaintext
Raw Permalink Normal View History

2020-07-02 15:38:21 -07:00
#!/bin/bash
GDIR="/usr/lib/node_modules" # global install, default global install directory
2020-07-02 15:38:21 -07:00
DIR=${1:-$NODE_RED_USER_DIR}
[[ !$DIR ]] && echo using default user directory /data/node-red && DIR=/data/node-red
echo Starting Node Red with user instance directory $DIR
/usr/bin/node $GDIR/node-red/red.js --userDir $DIR