Clean up server & build site logic. Fixed #94

This commit is contained in:
spf13 2013-10-09 18:52:29 -04:00
parent e6ace71fec
commit 0318f7c149
3 changed files with 34 additions and 21 deletions

View file

@ -45,7 +45,7 @@ func server(cmd *cobra.Command, args []string) {
Config.BaseUrl = "http://localhost:" + strconv.Itoa(serverPort)
}
build(cmd, args)
build()
// Watch runs its own server as part of the routine
if serverWatch {