fix(controller): touch ups on the update process to view more clean

This commit is contained in:
2025-09-07 15:34:56 -05:00
parent fe05ff17e1
commit 50927ca341
2 changed files with 18 additions and 20 deletions

View File

@@ -55,9 +55,10 @@ func UpdateApp(server *socketio.Server) <-chan string {
server.BroadcastToRoom("/", "update", "updateLogs", msg)
// 1. Stop services + pool
stopService("LSTV2")
time.Sleep(1 * time.Second)
stopService("lst_app")
stopAppPool("LogisticsSupportTool")
time.Sleep(2 * time.Second)
//stopAppPool("LogisticsSupportTool")
time.Sleep(1 * time.Second)
msg = "Checking cleanup of files"
updates <- msg
@@ -104,8 +105,10 @@ func UpdateApp(server *socketio.Server) <-chan string {
updates <- msg
server.BroadcastToRoom("/", "update", "updateLogs", msg)
startService("lst_app")
time.Sleep(2 * time.Second)
startService("LSTV2")
startAppPool("LogisticsSupportTool")
time.Sleep(2 * time.Second)
//startAppPool("LogisticsSupportTool")
if err := os.Remove(zips[0]); err != nil {
msg = fmt.Sprintf("warning: failed to delete zip %s: %v", zips[0], err)