mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
commands: Print language code after web server address info
This commit is contained in:
parent
2ae4786ca1
commit
525bed9919
1 changed files with 2 additions and 2 deletions
|
@ -927,7 +927,7 @@ func (c *serverCommand) serve() error {
|
||||||
|
|
||||||
for i := range baseURLs {
|
for i := range baseURLs {
|
||||||
mu, listener, serverURL, endpoint, err := srv.createEndpoint(i)
|
mu, listener, serverURL, endpoint, err := srv.createEndpoint(i)
|
||||||
var srv *http.Server
|
var srv *http.Server
|
||||||
if c.tlsCertFile != "" && c.tlsKeyFile != "" {
|
if c.tlsCertFile != "" && c.tlsKeyFile != "" {
|
||||||
srv = &http.Server{
|
srv = &http.Server{
|
||||||
Addr: endpoint,
|
Addr: endpoint,
|
||||||
|
@ -954,7 +954,7 @@ func (c *serverCommand) serve() error {
|
||||||
mu.HandleFunc(u.Path+"/livereload.js", livereload.ServeJS)
|
mu.HandleFunc(u.Path+"/livereload.js", livereload.ServeJS)
|
||||||
mu.HandleFunc(u.Path+"/livereload", livereload.Handler)
|
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 {
|
wg1.Go(func() error {
|
||||||
if c.tlsCertFile != "" && c.tlsKeyFile != "" {
|
if c.tlsCertFile != "" && c.tlsKeyFile != "" {
|
||||||
err = srv.ServeTLS(listener, c.tlsCertFile, c.tlsKeyFile)
|
err = srv.ServeTLS(listener, c.tlsCertFile, c.tlsKeyFile)
|
||||||
|
|
Loading…
Reference in a new issue