projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a7016
)
Add a check for the setting of watch flag in config file
author
Scott C Wilson
<scottcwilson@gmail.com>
Sat, 18 Jul 2015 00:42:09 +0000
(20:42 -0400)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Mon, 20 Jul 2015 12:20:07 +0000
(14:20 +0200)
Fixes #1074
commands/server.go
patch
|
blob
|
history
diff --git
a/commands/server.go
b/commands/server.go
index c8fe7ee4b2fedb988b104ee2af5063ba3fd5f682..64bb16259dd62929e6200bf81f6d0ced55cc5b4b 100644
(file)
--- 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()