node-red-run/run

9 lines
276 B
Bash
Executable File

#!/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