diff options
author | spf13 <[email protected]> | 2013-07-26 09:24:35 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2013-07-26 09:24:35 -0400 |
commit | c560a7537ab8eb5bf24468f03ec2210008a0c8fa (patch) | |
tree | 59833ea46bed0462f7bc5498f41c529d8083cab6 /main.go | |
parent | b2385f062a1b31caa7fdab98c308bc839735389c (diff) | |
download | hugo-c560a7537ab8eb5bf24468f03ec2210008a0c8fa.tar.gz hugo-c560a7537ab8eb5bf24468f03ec2210008a0c8fa.zip |
adding more verbose output to server functionality
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -112,6 +112,11 @@ func main() { } func serve(port string, config *hugolib.Config) { + + if config.Verbose { + fmt.Println("Serving pages from " + config.GetAbsPath(config.PublishDir)) + } + 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)))) |