11 lines
264 B
Bash
11 lines
264 B
Bash
#!/usr/bin/env bash
|
|
# Start DSHWatch relay broker
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
if [ ! -f config.json ]; then
|
|
cp config.example.json config.json
|
|
echo "created config.json from example; edit token first." >&2
|
|
fi
|
|
npm install --no-audit --no-fund
|
|
node server.js
|