return the http.Server instance to allow manual shutdowns

This commit is contained in:
Gani Georgiev
2023-07-16 23:12:14 +03:00
parent 64d7ab22f3
commit 6179864828
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func NewServeCommand(app core.App, showStartBanner bool) *cobra.Command {
Use: "serve",
Short: "Starts the web server (default to 127.0.0.1:8090)",
Run: func(command *cobra.Command, args []string) {
err := apis.Serve(app, apis.ServeConfig{
_, err := apis.Serve(app, apis.ServeConfig{
HttpAddr: httpAddr,
HttpsAddr: httpsAddr,
ShowStartBanner: showStartBanner,