From: spf13 Date: Fri, 26 Jul 2013 13:25:30 +0000 (-0400) Subject: fixing bug with server not finding right path X-Git-Tag: v0.8~17 X-Git-Url: http://git.maquefel.me//?a=commitdiff_plain;h=b7bbc28cafffee0b83211a6d7e89be0ccd18f155;p=brevno-suite%2Fhugo fixing bug with server not finding right path --- diff --git a/main.go b/main.go index d991646c..52e48f2e 100644 --- a/main.go +++ b/main.go @@ -119,7 +119,7 @@ func serve(port string, config *hugolib.Config) { fmt.Println("Web Server is available at http://localhost:" + port) fmt.Println("Press ctrl+c to stop") - panic(http.ListenAndServe(":"+port, http.FileServer(http.Dir(config.PublishDir)))) + panic(http.ListenAndServe(":"+port, http.FileServer(http.Dir(config.GetAbsPath(config.PublishDir))))) } func buildSite(config *hugolib.Config) *hugolib.Site {