Skip to content

Commit

Permalink
support node-red 3.1.0 and 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Sep 14, 2023
1 parent 90c0c94 commit ec8baf6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ dir=$PWD
if [ ! -d "/opt/node-red" ]; then

mkdir -p /opt/node-red
cd /tmp
wget https://github.com/node-red/node-red/releases/download/3.0.2/node-red-3.0.2.zip
unzip node-red-3.0.2.zip -d /opt/node-red/v3.0.2
rm node-red-3.0.2.zip
cd /opt/node-red/v3.0.2/node-red
npm install
npm install -g --unsafe-perm [email protected] --prefix /opt/node-red/v3.0.2
npm install -g --unsafe-perm [email protected] --prefix /opt/node-red/v3.1.0

fi

Expand Down
2 changes: 1 addition & 1 deletion nodeapp/.noderedrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.0.2
v3.1.0
2 changes: 1 addition & 1 deletion nodeapp/nodered.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
if (fs.existsSync(file)) {
ver = fs.readFileSync(file, {encoding:'utf8', flag:'r'}).trim();
}
nodeapp.script = '/opt/node-red/' + ver + '/node-red/red.js';
nodeapp.script = '/opt/node-red/' + ver + '/bin/node-red';
nodeapp.args += ' -u ' + __dirname;
return [nodeapp];
})()
Expand Down

0 comments on commit ec8baf6

Please sign in to comment.