]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands: Print language code after web server address info
authorilmari-lauhakangas <ilmari-lauhakangas@users.noreply.github.com>
Mon, 11 Sep 2023 09:38:24 +0000 (12:38 +0300)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2023 09:38:24 +0000 (11:38 +0200)
commands/server.go

index 153f4a9d18a38df93ee651f7ec4055843c8a4122..364e59f8ff345052906df736f049e6bb34b78a67 100644 (file)
@@ -927,7 +927,7 @@ func (c *serverCommand) serve() error {
 
        for i := range baseURLs {
                mu, listener, serverURL, endpoint, err := srv.createEndpoint(i)
-               var srv *http.Server
+               var srv *http.Server    
                if c.tlsCertFile != "" && c.tlsKeyFile != "" {
                        srv = &http.Server{
                                Addr:    endpoint,
@@ -954,7 +954,7 @@ func (c *serverCommand) serve() error {
                        mu.HandleFunc(u.Path+"/livereload.js", livereload.ServeJS)
                        mu.HandleFunc(u.Path+"/livereload", livereload.Handler)
                }
-               c.r.Printf("Web Server is available at %s (bind address %s)\n", serverURL, c.serverInterface)
+               c.r.Printf("Web Server is available at %s (bind address %s) %s\n", serverURL, c.serverInterface, roots[i])
                wg1.Go(func() error {
                        if c.tlsCertFile != "" && c.tlsKeyFile != "" {
                                err = srv.ServeTLS(listener, c.tlsCertFile, c.tlsKeyFile)