Hotfix: Add correct path for internet url option of browser dev environment
parent
1e0a5df370
commit
19acbcbaad
|
@ -1169,7 +1169,7 @@ func taskGetBrowserDevStatus() string {
|
||||||
|
|
||||||
func taskGetBrowserDevUrl() string {
|
func taskGetBrowserDevUrl() string {
|
||||||
url := ""
|
url := ""
|
||||||
myEdgeAppServiceEnv, err := godotenv.Read(utils.GetPath(utils.EdgeAppsPath) + "dev/myedgeapp.env")
|
myEdgeAppServiceEnv, err := godotenv.Read(utils.GetPath(utils.BrowserDevPath) + "myedgeapp.env")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("No myedge.app environment file found. Status is Network-Only")
|
log.Println("No myedge.app environment file found. Status is Network-Only")
|
||||||
url = "http://dev." + system.GetHostname() + ".local"
|
url = "http://dev." + system.GetHostname() + ".local"
|
||||||
|
|
|
@ -111,6 +111,7 @@ const ApiPath string = "apiPath"
|
||||||
const EdgeAppsPath string = "edgeAppsPath"
|
const EdgeAppsPath string = "edgeAppsPath"
|
||||||
const EdgeAppsBackupPath string = "edgeAppsBackupPath"
|
const EdgeAppsBackupPath string = "edgeAppsBackupPath"
|
||||||
const WsPath string = "wsPath"
|
const WsPath string = "wsPath"
|
||||||
|
const BrowserDevPath string = "browserDevPath"
|
||||||
const LoggerPath string = "loggerPath"
|
const LoggerPath string = "loggerPath"
|
||||||
const BrowserDevPasswordFileLocation string = "browserDevPasswordFileLocation"
|
const BrowserDevPasswordFileLocation string = "browserDevPasswordFileLocation"
|
||||||
const BrowserDevProxyPath string = "browserDevProxyPath"
|
const BrowserDevProxyPath string = "browserDevProxyPath"
|
||||||
|
@ -176,6 +177,14 @@ func GetPath(pathKey string) string {
|
||||||
targetPath = "/home/system/components/ws/"
|
targetPath = "/home/system/components/ws/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case BrowserDevPath:
|
||||||
|
|
||||||
|
if env["BROWSERDEV_PATH"] != "" {
|
||||||
|
targetPath = env["BROWSERDEV_PATH"]
|
||||||
|
} else {
|
||||||
|
targetPath = "/home/system/components/dev/"
|
||||||
|
}
|
||||||
|
|
||||||
case LoggerPath:
|
case LoggerPath:
|
||||||
if env["LOGGER_PATH"] != "" {
|
if env["LOGGER_PATH"] != "" {
|
||||||
targetPath = env["LOGGER_PATH"]
|
targetPath = env["LOGGER_PATH"]
|
||||||
|
|
Loading…
Reference in New Issue