update server to match latest afero - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit ed3015c35014089deb3b9dae03d0997c04f0834c
(DIR) parent dd1d655617884ccf7fceaa6f96b0c6d590c26e69
(HTM) Author: Steve Francia <steve.francia@gmail.com>
Date: Mon, 11 Jan 2016 21:45:05 -0500
update server to match latest afero
Diffstat:
M commands/server.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/commands/server.go b/commands/server.go
@@ -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)