mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
update server to match latest afero
This commit is contained in:
parent
dd1d655617
commit
ed3015c350
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ func serve(port int) {
|
|||
jww.FEEDBACK.Println("Serving pages from memory")
|
||||
}
|
||||
|
||||
httpFs := &afero.HttpFs{SourceFs: hugofs.DestinationFS}
|
||||
httpFs := afero.NewHttpFs(hugofs.DestinationFS)
|
||||
fs := filesOnlyFs{httpFs.Dir(helpers.AbsPathify(viper.GetString("PublishDir")))}
|
||||
fileserver := http.FileServer(fs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue