aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorspf13 <[email protected]>2013-07-26 09:25:30 -0400
committerspf13 <[email protected]>2013-07-26 09:25:30 -0400
commitb7bbc28cafffee0b83211a6d7e89be0ccd18f155 (patch)
treed9a137766ba8562c1c91d61eb68f2702bd6dfd7c /main.go
parentc560a7537ab8eb5bf24468f03ec2210008a0c8fa (diff)
downloadhugo-b7bbc28cafffee0b83211a6d7e89be0ccd18f155.tar.gz
hugo-b7bbc28cafffee0b83211a6d7e89be0ccd18f155.zip
fixing bug with server not finding right path
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index d991646c5..52e48f2e0 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 {