# Persistent context

**URL:** <https://discourse.nodered.org/t/persistent-context/2573>\
**Category:** General\
**Created:** [26 August 2018 08:54 UTC](https://discourse.nodered.org/t/persistent-context/2573 "2018-08-26T08:54:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtoko](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mtoko/32/138_2.png) [@mtoko](https://discourse.nodered.org/u/mtoko)\
**Post date:** [26 August 2018 08:54 UTC](https://discourse.nodered.org/t/persistent-context/2573/1 "2018-08-26T08:54:59Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [26 August 2018 10:14 UTC](https://discourse.nodered.org/t/persistent-context/2573/2 "2018-08-26T10:14:25Z")

</div>

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.
