# Restoring files from desktop NR and electron

**URL:** <https://discourse.nodered.org/t/restoring-files-from-desktop-nr-and-electron/29295>\
**Category:** General\
**Created:** [1 July 2020 08:38 UTC](https://discourse.nodered.org/t/restoring-files-from-desktop-nr-and-electron/29295 "2020-07-01T08:38:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivy](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Ivy](https://discourse.nodered.org/u/Ivy)\
**Post date:** [1 July 2020 08:38 UTC](https://discourse.nodered.org/t/restoring-files-from-desktop-nr-and-electron/29295/1 "2020-07-01T08:38:19Z")

</div>

Hi, for the past few weeks I've been making a dashboard on NR. It worked great.  
but then I want to be able to distribute the project. I followed the tutorial I found on [making it as a desktop app](https://discourse.nodered.org/t/is-it-possible-to-make-node-red-into-a-windows-portable-app/11259/2). which leads me to [electron](https://github.com/natcl/electron-node-red#packaging-your-application). It didn't work.  
I then looked up some more information on this topic and found [something similar](https://www.electronjs.org/apps/node-red) but it has [a setup.exe file and source code](https://github.com/zuhito/electron-node-red/releases/tag/1.0.2). I ran the setup and it gave me an empty node-red editor window. cool. I played with it a bit by placing some hello world text\_ui node and closed the window.  
Later when I tried to open my dashboard project with my cmd like I used too. To my suprise I found out that instead of my dashboard, it gave me the hello world text\_ui. also my editor gave me "Cannot GET /" message.  
Luckily I made a copy of flows\_xxx.json and flows\_xxx\_cred.json yesterday so I tried replacing the files in ~.node-red with my backup. Nothing happens. It still is the hello world text\_ui. Looking at my cmd, the files that are used are in the right directories.  
Any suggestion on how to restore my project? also this is my first time doing a web-related programming so a more detailed explanation will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 July 2020 09:12 UTC](https://discourse.nodered.org/t/restoring-files-from-desktop-nr-and-electron/29295/2 "2020-07-01T09:12:32Z")

</div>

Hi Ivy, welcome to the forum.

It sounds as if node-red is picking up the wrong flows file. If you start node-red in a terminal you will see the startup messages and in there will be the flow file is is using.  
Tell us which operating system you are using as that will make it easier to help.  
If you can't work it out then copy/paste the startup log here (it should start with a Welcome to node red message).

---

<div class="post-metadata">

**Author:** ![Ivy](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Ivy](https://discourse.nodered.org/u/Ivy)\
**Post date:** [1 July 2020 09:19 UTC](https://discourse.nodered.org/t/restoring-files-from-desktop-nr-and-electron/29295/3 "2020-07-01T09:19:14Z")

</div>

Thank you for the reply. Just now I manage to solve the problem by restarting my computer. It worked just as before now

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 July 2020 09:19 UTC](https://discourse.nodered.org/t/restoring-files-from-desktop-nr-and-electron/29295/4 "2020-07-15T09:19:19Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
