mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-05 18:10:18 +03:00
commands: Fix broken server-reload on config changes
This was accidently broken in Hugo 0.42. Fixes #4878
This commit is contained in:
parent
1f0c4e1fb3
commit
2955f93fc6
3 changed files with 26 additions and 24 deletions
|
@ -298,7 +298,7 @@ func (f *fileServer) createEndpoint(i int) (*http.ServeMux, string, string, erro
|
|||
}
|
||||
}
|
||||
|
||||
httpFs := afero.NewHttpFs(f.c.Fs.Destination)
|
||||
httpFs := afero.NewHttpFs(f.c.destinationFs)
|
||||
fs := filesOnlyFs{httpFs.Dir(absPublishDir)}
|
||||
|
||||
doLiveReload := !f.s.buildWatch && !f.c.Cfg.GetBool("disableLiveReload")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue