diff --git a/main.go b/main.go index 64cffcd..0c843e5 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,13 @@ func run() error { mux.HandleFunc("GET /{$}", routes.Index(serviceList)) - err = http.ListenAndServe(":3000", mux) + address := os.Getenv("STATUS_ADDRESS") + if address == "" { + address = ":3000" + } + + log.Printf("Listening on %s", address) + err = http.ListenAndServe(address, mux) if err != nil { return err }