Check for updates
Commit 140dc847 generates /COMMITHASH file that contains the revision of the code running on ExpressJS. The current commit hash is also stored in window.softwareCommit
.
Create a periodically executed action (every 5min) that will load the /COMMITHASH from the server and compare its contents with window.softwareCommit
.
If the hash is different, issue a Snack saying "New version is available" and a button to "Reload" the page.
Note: This needs to only execute on the client, not on the server!