From b26e50cf1e45506ec0058739e424b1a1f1583432 Mon Sep 17 00:00:00 2001 From: VinnyTheLegend <66708167+VinnyTheLegend@users.noreply.github.com> Date: Sat, 25 Nov 2023 15:43:24 -0500 Subject: [PATCH] change port to env var --- router.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/router.go b/router.go index 4561366..37074f1 100644 --- a/router.go +++ b/router.go @@ -8,6 +8,7 @@ import ( "fmt" "github.com/gin-gonic/gin" "strings" + "os" ) func startRouter() { @@ -176,5 +177,5 @@ func startRouter() { //c.IndentedJSON(http.StatusOK, character) }) - router.Run("localhost:80") + router.Run("localhost:80" + os.Getenv("PORT")) } \ No newline at end of file