projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c560a75
)
fixing bug with server not finding right path
author
spf13
<steve.francia@gmail.com>
Fri, 26 Jul 2013 13:25:30 +0000
(09:25 -0400)
committer
spf13
<steve.francia@gmail.com>
Fri, 26 Jul 2013 13:25:30 +0000
(09:25 -0400)
main.go
patch
|
blob
|
history
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 {