summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-06-28 12:20:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-06-28 12:22:00 +0200
commit2955f93fc63f658797afa8690f4f39198054db45 (patch)
tree50207b7ead60fdb3092afcb3b73461720317eff9 /commands/server.go
parent1f0c4e1fb347bb233f3312c424fbf5a013c03604 (diff)
commands: Fix broken server-reload on config changes
This was accidently broken in Hugo 0.42. Fixes #4878
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go
index 8089b0ade..fde881f6f 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -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")