Skip to content

Commit

Permalink
Adds a check for the setting of watch flag in config file.
Browse files Browse the repository at this point in the history
Fixes #1074
  • Loading branch information
scottcwilson committed Jul 20, 2015
1 parent e3ea4b4 commit 465cde0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 465cde0

Please sign in to comment.