shithub: hugo

Download patch

ref: e6ace71fecd075b96aa81b8daa3f3c368f27325f
parent: 4993152dda39bceb3585b0bef8717a1af0509dd1
author: spf13 <[email protected]>
date: Wed Oct 9 14:24:40 EDT 2013

server command now builds prior to serving

--- a/commands/server.go
+++ b/commands/server.go
@@ -45,6 +45,8 @@
 		Config.BaseUrl = "http://localhost:" + strconv.Itoa(serverPort)
 	}
 
+	build(cmd, args)
+
 	// Watch runs its own server as part of the routine
 	if serverWatch {
 		fmt.Println("Watching for changes in", Config.GetAbsPath(Config.ContentDir))