From c00a1fcb7fc6a063725229c267a63b35dbf48d1a Mon Sep 17 00:00:00 2001 From: Scott C Wilson Date: Fri, 17 Jul 2015 20:42:09 -0400 Subject: [PATCH] Add a check for the setting of watch flag in config file Fixes #1074 --- commands/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/server.go b/commands/server.go index c8fe7ee4b..64bb16259 100644 --- a/commands/server.go +++ b/commands/server.go @@ -71,6 +71,10 @@ func server(cmd *cobra.Command, args []string) { viper.Set("Watch", true) } + if viper.GetBool("watch") { + serverWatch = true + } + l, err := net.Listen("tcp", net.JoinHostPort(serverInterface, strconv.Itoa(serverPort))) if err == nil { l.Close()