Skip to content

Commit

Permalink
Remove Hostname ENV variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Aug 23, 2018
1 parent 9cbe0b7 commit 49f4433
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ var config struct {
CacheExpiredPurge int `env:"CACHE_EXPIRED_PURGE" envDefault:"60"`
Environment string `env:"ENVIRONMENT" envDefault:"develop"`
Port int `env:"PORT" envDefault:"8080"`
APIHostname string `env:"API_HOSTNAME" envDefault:"http://localhost"`
}

func main() {
Expand Down Expand Up @@ -108,7 +107,7 @@ func main() {
w.Write([]byte("nothing to see here"))
})

l.Log("msg", fmt.Sprintf("feedbridge listening on %s:%d", config.APIHostname, config.Port))
l.Log("msg", fmt.Sprintf("feedbridge listening on http://localhost:%d", config.Port))
err = http.ListenAndServe(fmt.Sprintf(":%d", config.Port), r)
if err != nil {
panic(err)
Expand Down

0 comments on commit 49f4433

Please sign in to comment.