Skip to content

Commit

Permalink
pulling port from env
Browse files Browse the repository at this point in the history
  • Loading branch information
Cufee committed Jun 6, 2024
1 parent 98d3eb7 commit 5f6b360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func main() {
}

http.Handle("/discord/callback", discordHandler)
panic(http.ListenAndServe(":9092", nil))
panic(http.ListenAndServe(":"+os.Getenv("PORT"), nil))

// test
// localePrinter := func(s string) string { return "localized:" + s }
Expand Down

0 comments on commit 5f6b360

Please sign in to comment.