mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
fixing bug with server not finding right path
This commit is contained in:
parent
c560a7537a
commit
b7bbc28caf
1 changed files with 1 additions and 1 deletions
2
main.go
2
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 {
|
||||
|
|
Loading…
Reference in a new issue