aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRaul Benencia <raul@thousandeyes.com>2021-01-12 16:57:26 -0800
committerRaul Benencia <46945030+raul-te@users.noreply.github.com>2021-01-13 10:50:35 -0800
commitcfa915142c2bbff8d1572488b6343e56dfef9b64 (patch)
tree66961e8009fb10e84ddec3b55633d8cd4769cff8 /main.go
parentfa13436d4ceba235081c9eedb8d6f586ea21e7aa (diff)
Segregate BindAddr and BaseURL
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index e66f6e4..9d5c148 100644
--- a/main.go
+++ b/main.go
@@ -27,8 +27,8 @@ func main() {
env := environment.New()
app := handlers.MiddlewareChain(env).Then(router.ShoelacesRouter(env))
- env.Logger.Info("component", "main", "transport", "http", "addr", env.BaseURL, "msg", "listening")
- env.Logger.Error("component", "main", "err", http.ListenAndServe(env.BaseURL, app))
+ env.Logger.Info("component", "main", "transport", "http", "addr", env.BindAddr, "msg", "listening")
+ env.Logger.Error("component", "main", "err", http.ListenAndServe(env.BindAddr, app))
os.Exit(1)
}
nihil fit ex nihilo