Skip to content

Commit

Permalink
Don's specify localhost in url just use port (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf authored Aug 22, 2024
1 parent 068323f commit bb85cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
routes.Setup(app)

listeningPort := utils.GetEnv("PORT", "8081")
url := fmt.Sprintf("localhost:%s", listeningPort)
url := fmt.Sprintf(":%s", listeningPort)
fmt.Printf("application running in %s at %s\n", listeningPort, url)
err := app.Run(url)
if err != nil {
Expand Down

0 comments on commit bb85cf4

Please sign in to comment.