Web App and 2018r4

@Amy Barnes

Add a property to App:
timerShutdown, type is Timer

Put following code in the App.Open event:

timerShutdown = New Timer
AddHandler timerShutdown.Action, AddressOf timerShutdown_Action
timerShutdown.Period = 5000
timerShutdown.mode = Timer.ModeMultiple

Next create a method in App: timerShutdown_Action
Add following code to that method.

#If DebugBuild = False Then
  Dim f As FolderItem
  f = GetFolderItem("")
  f = GetFolderItem(f.NativePath + Lowercase(App.ExecutableFile.Name) + ".cgi")
  If (f.Exists() = False) Then
    App.Quit()
  End If
#EndIf

If you want to update your web app on the server, all you have. to is delete the .cgi file and within 5-10 seconds your app will stop working.
For more information see this blog by @Phillip Zedalis (all credits to Phillip for this solution)

Does anyone know where I can download libunwind.so.8 and libunwind-x86_64.so.8 i so I can install those libs into the Libs folder?

@Paul Sondervan – this is standard when I build a WebApp ever since I saw the article on @Phillip Zedalis blog post regarding the need for this code so devs can update the app.