diff options
author | Raul Benencia <raul@thousandeyes.com> | 2021-01-12 16:57:26 -0800 |
---|---|---|
committer | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2021-01-13 10:50:35 -0800 |
commit | cfa915142c2bbff8d1572488b6343e56dfef9b64 (patch) | |
tree | 66961e8009fb10e84ddec3b55633d8cd4769cff8 /main.go | |
parent | fa13436d4ceba235081c9eedb8d6f586ea21e7aa (diff) |
Segregate BindAddr and BaseURL
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |