commit c00a1fcb7fc6a063725229c267a63b35dbf48d1a
parent 03a70161047f33b491b300fbbc76f71ff3d34218
Author: Scott C Wilson <scottcwilson@gmail.com>
Date: Fri, 17 Jul 2015 20:42:09 -0400
Add a check for the setting of watch flag in config file
Fixes #1074
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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()