ref: c560a7537ab8eb5bf24468f03ec2210008a0c8fa
parent: b2385f062a1b31caa7fdab98c308bc839735389c
author: spf13 <[email protected]>
date: Fri Jul 26 05:24:35 EDT 2013
adding more verbose output to server functionality
--- a/main.go
+++ b/main.go
@@ -112,6 +112,11 @@
}
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))))