Updated Design: Runnable Project (markdown)

Dave Conway-Jones 2018-04-06 16:27:19 +01:00
parent 7668e31693
commit 6a34121153
1 changed files with 2 additions and 2 deletions

@ -30,8 +30,8 @@ We can't quite do this today. Here are the missing pieces:
- [DCJ] added as new command line option to runnable-project dev branch
4. Must handle running in a read-only environment. If the package is installed globally (in order to insert a command link into /usr/bin) then the flow file and settings.js will be in root space - which ought not to be writable by the user. Currently even starting Node-RED with -u option pointing somewhere protected will fail. Options include
- just handling the error.
- on detecting this condition, marking the settings.readOnly as true thus stopping the library failing.
- just handling the error - i.e. log something (useful) - but fail to start.
- on detecting this condition, marking the settings.readOnly as true thus stopping the library failing - but run.
- setting disableEditor to `true` also.
The package would provide an npm start script that runs node-red with the appropriate command-line args.