Persistent context

#1

I am trying to implement persistent context on a IBM Cloud NR and have just created a new app to implement NR 0.19. I have added

contextStorage: {
   default: {
       module: "localfilesystem"
   }
}

to module.exports in settings but this does not work. My guess is that there is no localfilesystem in cloud NR?
Any advice appreciated

0 Likes

#2

You cannot use the local filesystem context store with the node-red boilerplate. It will happily write your data to files, but when the app is restarted all changes to the filesystem are wiped so your data is gone. This is why the boilerplate app comes with a cloudant instance to store your flow configuration.

We haven't yet got a context plugin suitable for this yet.

0 Likes