mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 03:54:43 -04:00
update server to match latest afero
This commit is contained in:
parent
dd1d655617
commit
ed3015c350
@ -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…
x
Reference in New Issue
Block a user