fix(controller): touch ups on the update process to view more clean
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user