mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00:00
update server to match latest afero
This commit is contained in:
1 parent
dd1d655617
commit
ed3015c350
1 file changed
+1
-1
+1
-1
@@ -186,7 +186,7 @@ func serve(port int) {
|
|||||||
jww.FEEDBACK.Println("Serving pages from memory")
|
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")))}
|
fs := filesOnlyFs{httpFs.Dir(helpers.AbsPathify(viper.GetString("PublishDir")))}
|
||||||
fileserver := http.FileServer(fs)
|
fileserver := http.FileServer(fs)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user