fixing bug with server not finding right path
authorspf13 <steve.francia@gmail.com>
Fri, 26 Jul 2013 13:25:30 +0000 (09:25 -0400)
committerspf13 <steve.francia@gmail.com>
Fri, 26 Jul 2013 13:25:30 +0000 (09:25 -0400)
main.go

diff --git a/main.go b/main.go
index d991646c5cd7073cbeec875f92db62df9a0bc7d2..52e48f2e024c3e07e3c53c9bb35d216872189a05 100644 (file)
--- 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 {