wojtkowiak / meteor-desktop

Build a Meteor's desktop client with hot code push.
MIT License
448 stars 84 forks source link

Disable Hot Code Push #226

Open ltlbsteed opened 5 years ago

ltlbsteed commented 5 years ago

I have a need to debug some issues against our production server. Is there a way to disable Hot Code Push I'm missing?

With our web version, we can arrest a hot code push with Reload_onMigrate, but that doesn't seem to affect the behavior of the electron version. I've found code in the skeleton app that looks to be controlling this, but I don't want to modify the meteor-desktop npm package unnecessarily.

Any pointers would be appreciated.

KoenLav commented 5 years ago

I believe Reload._onMigrate should allow to configure this behavior in Meteor Desktop as well.

We recently started using the reload on resume package, which defers restarting after a HCP until the app is resumed in Cordova (Android/IOS).

The resume event, I think, doesn't exist in Electron, so when using this package it will only update when the application is restarted.