server command now builds prior to serving

This commit is contained in:
spf13 2013-10-09 18:24:40 -04:00
parent 4993152dda
commit e6ace71fec

View file

@ -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))