From 17f8b8927a19a36304e6b8bdeeb693a6c1882ff0 Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 16 Mar 2019 16:37:35 +0800 Subject: [PATCH] update node-red --- node-red/README.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/node-red/README.md b/node-red/README.md index 18cd049..2dbff52 100644 --- a/node-red/README.md +++ b/node-red/README.md @@ -40,12 +40,6 @@ node-red: ```javascript module.exports = { - //... - - flowFile: 'flows.json', - - //... - adminAuth: { type: "credentials", users: [{ @@ -58,26 +52,30 @@ module.exports = { } }, - //... - } ``` -> Password hash can be generated by running `node-red-admin hash-pw`. +> Password hash can be generated by running `node-red-admin hash-pw` +> ## up and running -``` -$ cd ~/fig/node-red/ +```bash $ docker-compose up -d + $ docker-compose exec node-red node-red-admin hash-pw +>>> Password: ****** +... $2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN. + $ vi data/settings.js + $ docker-compose exec node-red bash >>> cd /data >>> apk add -U build-base >>> npm install node-red-node-irc >>> npm install node-red-node-daemon >>> exit + $ docker-compose restart ```