From c4c713988a62c2ca1ea92778f2cebbfd483c98f1 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Wed, 2 Nov 2022 16:31:43 +0100 Subject: [frontend] change bundler to skulk (#942) * replace web bundler with skulk * upgrade skulk * add license --- testrig/router.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testrig/router.go') diff --git a/testrig/router.go b/testrig/router.go index 5ab228611..b8f6a77f5 100644 --- a/testrig/router.go +++ b/testrig/router.go @@ -22,6 +22,7 @@ import ( "context" "os" "path/filepath" + "strconv" "github.com/gin-gonic/gin" "github.com/superseriousbusiness/gotosocial/internal/config" @@ -44,6 +45,12 @@ func NewTestRouter(db db.DB) router.Router { config.SetBindAddress(alternativeBindAddress) } + if alternativePortStr := os.Getenv("GTS_PORT"); alternativePortStr != "" { + if alternativePort, err := strconv.Atoi(alternativePortStr); err == nil { + config.SetPort(alternativePort) + } + } + r, err := router.New(context.Background(), db) if err != nil { panic(err) -- cgit v1.2.3