Skip to content

Commit

Permalink
Show Shiori version on server command (#669)
Browse files Browse the repository at this point in the history
Fixes #668
  • Loading branch information
fmartingr committed Jul 22, 2023
1 parent 622d556 commit 2cbc592
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cmd/server.go
Expand Up @@ -5,6 +5,7 @@ import (
"strings"

"github.com/go-shiori/shiori/internal/http"
"github.com/go-shiori/shiori/internal/model"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -63,6 +64,8 @@ func newServerCommandHandler() func(cmd *cobra.Command, args []string) {
cfg.Http.ServeWebUI = serveWebUI
cfg.Http.SecretKey = secretKey

dependencies.Log.Infof("Starting Shiori v%s", model.BuildVersion)

server := http.NewHttpServer(dependencies.Log).Setup(cfg, dependencies)

if err := server.Start(ctx); err != nil {
Expand Down

0 comments on commit 2cbc592

Please sign in to comment.