From f9b08985a2ceb75f174342ae53e93ff4af1621f0 Mon Sep 17 00:00:00 2001 From: "moosavi.smd" Date: Fri, 26 Apr 2024 19:56:51 +0330 Subject: [PATCH] Make 80 the default port --- app/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.go b/app/main.go index 5cb79dc..bde9f2f 100644 --- a/app/main.go +++ b/app/main.go @@ -41,7 +41,8 @@ func main() { port := os.Getenv("PORT") if port == "" { - log.Fatal("PORT environment variable not set.") + port = "80" + log.Println("Set te listening port to 80") } log.Printf("Server is running on port %s\n", port)