diff --git a/main.go b/main.go index fc51c97..3aa1716 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "errors" "log" "net/http" + "os" "strconv" "itsc/db" @@ -385,5 +386,5 @@ func main() { }) log.Println("Started") - r.Run(":8081") + r.Run(os.Getenv("ITSC_LISTEN")) }