node-red-run/run

9 lines
276 B
Plaintext
Raw Normal View History

2020-07-02 15:38:21 -07:00
#!/bin/bash
GDIR="/usr/lib/node_modules" # global install
DIR=${1:-$NODE_RED_USER_DIR}
echo any dir set? $DIR
DIR=${DIR:-/opt/node-red}
echo any dir set? $DIR
echo Starting Node Red with instance directory $DIR
/usr/bin/node -r $GDIR/esm $GDIR/node-red/red.js --userDir $DIR