Fixes to install make command, fixes to local network app url definition, run ws build on start and every 24 hours

This commit is contained in:
Paulo Truta
2023-10-28 18:43:18 +02:00
parent 8bf26a334c
commit 445bc41d0e
4 changed files with 23 additions and 2 deletions
+8
View File
@@ -100,6 +100,14 @@ func SetupCloudOptions() {
utils.Exec("/", "rm", []string{cloudEnvFileLocationPath})
}
// StartWs: Starts the webserver service for Edgeapps
func StartWs() {
wsPath := utils.GetPath(utils.WsPath)
fmt.Println("Starting WS")
cmdargs := []string{"-b"}
utils.Exec(wsPath, "./ws", cmdargs)
}
// StartService: Starts a service
func StartService(serviceID string) {
wsPath := utils.GetPath(utils.WsPath)