All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.
alternate-node-red-installer adheres to Semantic Versioning.
None
WARNING: Although this has the same major version number as the previous release, it is a breaking release. This is to allow the major versions to be aligned to Node-RED itself.
- Minimum version of Node.js supported is now v14 in alignment with Node-RED v3.
- Update to node-red v3.0.2 as minimum - the latest version of node-red will always be installed when
nrinstall
is run.
- Changes to the systemd service file - removing spurious quote characters.
- Changes to the
data/envfile.ini
file - removing spurious quote characters.
- Update
example-settings.js
to a newer version - aligned to node-red v3.0.2 with enhancements & additional help - Removed
.eslintrc.js
/.eslintrc.json
- not required - Removed
package-lock.json
- not required - Minor improvements
- Minimum version of Node.js supported is now v12
- Dependencies updated (note that several dependencies from Sindresorhus are used - annoyingly he has forced a move to ESM only, this is just too hard to contemplate right now so still using older versions)
- Removed some extraneous quotes
-
An example
settings.js
file (data/example-settings/js
)This contains a number of enhancements over the default including extended information that can be collapsed for easier reading.
It also is configured to pick up the environment variables specified in this packages templates.
-
backup.sh
,backupw.sh
, andbackupm.sh
BASH scripts in the newscripts
folder to efficiently back up your working Node-RED installation if installed using this alternate installer.The scripts should be run from CRON daily, weekly and monthly respectively.
Please amend the indicated variables in the scripts so that they will work for your own installation.
# Node-RED daily backup (3AM every day) 0 3 * * * "/home/home/nrmain"/backup.sh > /dev/null # Node-RED weekly backup (03:30 every Sunday) 30 3 * * 0 "/home/home/nrmain"/backupw.sh > /dev/null # Node-RED monthly backup (04:00 on the first of every month) 0 4 1 * * "/home/home/nrmain"/backupm.sh > /dev/null
They give you 7 days of daily backups, 5 weekly backups, and 12 monthly backups. They should be easy enough to adapt to whatever schedule you want.
Output from the scripts are written to syslog, review with
sudo cat /var/log/syslog | grep nrmain-backup
orsudo journalctl -t nrmain-backup
.Note that the backup scripts have been updated for Node-RED v1.3 such that
data/externalModules/node_modules
is excluded.
- Node.js v10 is now the minimum version due to dependency module changes.
- CHANGELOG and TODO files.
- Two command line commands are now available if you install this package globally:
alternate-node-red-installer
- OK, so this is a bit long and I can never remember it myself!nrinstall
- Yes, that's a bit more memorable. 😎
- Bump to v2.0 due to breaking change. And to v2.0.1 for the extra command name.
- Bump dependencies to latest versions.
- Tidy and improve code.
- Install now sets correct paths in
./system/node-red-service
and./data/envfile.ini
.