[frontend] change bundler to skulk (#942)

* replace web bundler with skulk

* upgrade skulk

* add license
This commit is contained in:
f0x52
2022-11-02 16:31:43 +01:00
committed by GitHub
parent f81f1e7d0f
commit c4c713988a
13 changed files with 897 additions and 2161 deletions

View File

@ -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)