commit e6ace71fecd075b96aa81b8daa3f3c368f27325f
parent 4993152dda39bceb3585b0bef8717a1af0509dd1
Author: spf13 <steve.francia@gmail.com>
Date: Wed, 9 Oct 2013 18:24:40 -0400
server command now builds prior to serving
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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))