commands: Fix broken server-reload on config changes

This was accidently broken in Hugo 0.42.

Fixes #4878
This commit is contained in:
Bjørn Erik Pedersen 2018-06-28 12:20:03 +02:00
parent 1f0c4e1fb3
commit 2955f93fc6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
3 changed files with 26 additions and 24 deletions

View file

@ -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")