update server to match latest afero

This commit is contained in:
Steve Francia 2016-01-11 21:45:05 -05:00
parent dd1d655617
commit ed3015c350

View file

@ -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)