From 49efc23ad8e2df3a0117e814a396c18ee35a453b Mon Sep 17 00:00:00 2001 From: Valerio Vinciarelli Date: Tue, 5 Mar 2024 16:42:26 +0100 Subject: [PATCH] minor fixes --- cmd/methods/genericfunctions.go | 7 +++++-- cmd/methods/version.go | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/methods/genericfunctions.go b/cmd/methods/genericfunctions.go index 22ede7e..915f408 100644 --- a/cmd/methods/genericfunctions.go +++ b/cmd/methods/genericfunctions.go @@ -145,6 +145,9 @@ func SetupProvidedIPs(externalip string) error { func PrintUrls() { + os.Setenv("PORTAL_URL_READY", "http://"+os.Getenv("API_HOST_ENV")+":"+os.Getenv("DATA_PORTAL_PORT")) + os.Setenv("API_URL_READY", "http://"+os.Getenv("API_HOST_ENV")+":"+os.Getenv("API_PORT")+os.Getenv("DEPLOY_PATH")+"api/v1/ui/") + fmt.Println(string(colorCyan), `Open Source Docker deploy &&&&&&&&&&&&&&&&&& *&&&&&&&%&&&% ***************** &&&&&&/ @@ -162,8 +165,8 @@ func PrintUrls() { Copyright (C) 2023 EPOS ERIC`, string(colorReset)) t := table.NewWriter() t.SetTitle("EPOS ACCESS POINTS") - t.AppendRow(table.Row{"EPOS Data Portal", "http://" + os.Getenv("API_HOST_ENV") + ":" + os.Getenv("DATA_PORTAL_PORT")}) - t.AppendRow(table.Row{"EPOS API Gateway", "http://" + os.Getenv("API_HOST_ENV") + ":" + os.Getenv("API_PORT") + os.Getenv("DEPLOY_PATH") + os.Getenv("API_PATH") + "/ui/"}) + t.AppendRow(table.Row{"EPOS Data Portal", os.Getenv("PORTAL_URL_READY")}) + t.AppendRow(table.Row{"EPOS API Gateway", os.Getenv("API_URL_READY")}) t.SetStyle(table.StyleColoredBlackOnGreenWhite) fmt.Println(t.Render()) } diff --git a/cmd/methods/version.go b/cmd/methods/version.go index 5866cc0..d8e39e5 100644 --- a/cmd/methods/version.go +++ b/cmd/methods/version.go @@ -19,5 +19,5 @@ package methods func GetVersion() string { - return "1.1.3" + return "1.1.4" }