summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index e7b5056..085e14b 100644
--- a/main.go
+++ b/main.go
@@ -54,6 +54,10 @@ func main() {
if me.urlbase == "" {
me.urlbase = "https://go.wit.com/"
}
+ if os.Getenv("FORGE_URL") != "" {
+ me.urlbase = os.Getenv("FORGE_URL")
+ log.Info("got forge url", me.urlbase)
+ }
me.urlbase = strings.Trim(me.urlbase, "/") // track down why trailing '/' makes http POST not work
// load the ~/.config/forge/ config