From: spf13 <steve.francia@gmail.com>
Date: Wed, 9 Oct 2013 22:24:40 +0000 (-0400)
Subject: server command now builds prior to serving
X-Git-Tag: v0.9~48
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e6ace71fecd075b96aa81b8daa3f3c368f27325f;p=brevno-suite%2Fhugo

server command now builds prior to serving
---

diff --git a/commands/server.go b/commands/server.go
index d82a345f..9b98d4c7 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -45,6 +45,8 @@ func server(cmd *cobra.Command, args []string) {
 		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))