From e6ace71fecd075b96aa81b8daa3f3c368f27325f Mon Sep 17 00:00:00 2001 From: spf13 Date: Wed, 9 Oct 2013 18:24:40 -0400 Subject: [PATCH] server command now builds prior to serving --- commands/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/server.go b/commands/server.go index d82a345f5..9b98d4c77 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))