Skip to content

Commit

Permalink
change port to env var
Browse files Browse the repository at this point in the history
  • Loading branch information
VinnyTheLegend committed Nov 25, 2023
1 parent 0f01121 commit b26e50c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"github.com/gin-gonic/gin"
"strings"
"os"
)

func startRouter() {
Expand Down Expand Up @@ -176,5 +177,5 @@ func startRouter() {
//c.IndentedJSON(http.StatusOK, character)
})

router.Run("localhost:80")
router.Run("localhost:80" + os.Getenv("PORT"))
}

0 comments on commit b26e50c

Please sign in to comment.