Skip to content

Commit

Permalink
Make 80 the default port
Browse files Browse the repository at this point in the history
  • Loading branch information
moosavi.smd committed Apr 26, 2024
1 parent 0d9c441 commit f9b0898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9b0898

Please sign in to comment.