mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[frontend] change bundler to skulk (#942)
* replace web bundler with skulk * upgrade skulk * add license
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user