# Electron Auto-Update - Ignore servoy.json config?

**URL:** <https://forum.servoy.com/t/electron-auto-update-ignore-servoy-json-config/21184>\
**Category:** Questions\
**Created:** [March 12, 2024, 10:58am UTC](https://forum.servoy.com/t/electron-auto-update-ignore-servoy-json-config/21184 "2024-03-12T10:58:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vik.lamp.vl](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/vik.lamp.vl/32/4447_2.png) [@vik.lamp.vl](https://forum.servoy.com/u/vik.lamp.vl)\
**Post date:** [March 12, 2024, 10:58am UTC](https://forum.servoy.com/t/electron-auto-update-ignore-servoy-json-config/21184/1 "2024-03-12T10:58:44Z")

</div>

Hey Guys,

maybe you can help me or have a idea for this topic.

Situation:  
Our Clients are running their own tomcat-server on their customer-server. For the Clients were using NGDesktop.  
So for it to work correctly, we´re configuring the `servoy.json` on the client-computer. For example ```  
C:\Program Files\OurSolution\resources\app.asar.unpacked\config\servoy.json

````auto

We´re replacing the url properties from ```
"url":"http://localhost:8183/OurSolution/solution/OurSolution/index.html"
``` to ```
"url":"http://CUSTOMER-SERVER-IPt:8183/OurSolution/solution/OurSolution/index.html"
```.
Because in our war-export we´re setting URL = localhost, every customer has a different server-ip. A very few are server=client, there we dont need to configure the servoy.json.

Now the problem: we got the electron auto-update working fine, its udpating the libraries, executables, etc. **BUT** it also replaces the servoy.json with the not-configured one.

So the customer gets a "hey you have a electron" update, restarts the application -> update gets downloade -> starts the application -> white-screen because the URL in the config is wrong.

I tried to look further into it, it seems like the electron-builder has a "ignore"-flag for files/directories. But we dont have the electron-builder.

Maybe im not seeing a critical point in this. The next option is to write a own Updater with C#. But maybe you guys have better ideas. Maybe it can even be a feature-request for servoy?

Greetings
-Vik
````

---

<div class="post-metadata">

**Author:** ![robert.edelmann](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/robert.edelmann/32/4494_2.png) [@robert.edelmann](https://forum.servoy.com/u/robert.edelmann)\
**Post date:** [March 12, 2024, 11:20am UTC](https://forum.servoy.com/t/electron-auto-update-ignore-servoy-json-config/21184/2 "2024-03-12T11:20:04Z")

</div>

Just a thought: If you modify the servoy.json manually, wouldn’t it be simpler to add an entry in the local host-file/the systemwide dns to resolve the address from the servoy.json for like “servoy-server.” pointing to the correct ip?

This would have the same effect and would be safe from the updates.

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [March 12, 2024, 11:40am UTC](https://forum.servoy.com/t/electron-auto-update-ignore-servoy-json-config/21184/3 "2024-03-12T11:40:08Z")

</div>

Hi Vik,

Great to read you got this working and definitely interested in the way you achieved this.  
I also had my doubts about whether or not the update process would leave alone the JSON configuration file, which you now confirmed.

I like Robert’s idea/solution on this, however this is not possible in an environment that is running multiple application servers using NGDesktop.  
Still think this is something that should be resolved in the update process, currently it’s just a lot of work moving from 1 version to the other as the NGDesktop update needs to be manually updated.

---

<div class="post-metadata">

**Author:** ![vik.lamp.vl](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/vik.lamp.vl/32/4447_2.png) [@vik.lamp.vl](https://forum.servoy.com/u/vik.lamp.vl)\
**Post date:** [March 12, 2024, 12:42pm UTC](https://forum.servoy.com/t/electron-auto-update-ignore-servoy-json-config/21184/4 "2024-03-12T12:42:05Z")

</div>

Hi Guys,

thanks for your input ![:)]( "Smile")

I´ll try @robert.edelmann idea. It should work in theorie, but i dont like the aspect of changing the hosts.file just for our application to update correctly.  
Its a bit “hackery” if you know what i mean.  
I´ll report if it worked that way.

@mboegem If you need any tipps or infos on how we did it, you can always contact me, im glad to help out in situations like this ![:)]( "Smile")

Anynway, im gonna open a feature-request for servoy. Maybe they can implement the “ignore”-flag in the ngdesktop-exporter. This would be the best-case scenario.

**edit** I put in a feature-request, you can find it under [Jira](https://support.servoy.com/browse/SVY-19043)  
I´ll keep this thread upated if i have a solution or any news on this.
