This commit is contained in:
2024-03-27 22:36:10 +02:00
parent 697747ade1
commit 774ca114dd
2 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,8 @@ func main() {
http.HandleFunc("/webhook", handleWebhook)
// listen server
fmt.Println("Webhook server listening on :3021") // @todo make env
err = http.ListenAndServe(":3021", nil)
fmt.Println("Webhook server listening on " + os.Getenv("LISTEN"))
err = http.ListenAndServe(os.Getenv("LISTEN"), nil)
if err != nil {
panic(err.Error())
}