Always use release mode
This commit is contained in:
parent
7d4a8d7f7e
commit
b03aa20c8d
|
@ -4,6 +4,7 @@ import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/mitchellh/colorstring"
|
"github.com/mitchellh/colorstring"
|
||||||
"github.com/pterodactyl/wings/loggers/cli"
|
"github.com/pterodactyl/wings/loggers/cli"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -223,6 +224,8 @@ func rootCmdRun(*cobra.Command, []string) {
|
||||||
"port": c.Api.Port,
|
"port": c.Api.Port,
|
||||||
}).Info("configuring webserver...")
|
}).Info("configuring webserver...")
|
||||||
|
|
||||||
|
gin.SetMode("release")
|
||||||
|
|
||||||
r := router.Configure()
|
r := router.Configure()
|
||||||
addr := fmt.Sprintf("%s:%d", c.Api.Host, c.Api.Port)
|
addr := fmt.Sprintf("%s:%d", c.Api.Host, c.Api.Port)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user