summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2015-11-09 23:31:52 -0500
committerspf13 <steve.francia@gmail.com>2015-11-09 23:31:52 -0500
commitbccf957e36346390336b172d10aae60bde90e397 (patch)
tree5428bee57415e069f46cb1c5aa49ca8f188d48bc /commands/server.go
parent488966dcb2600626563659f2ffbee43181e36a2d (diff)
Add support for dynamic reloading of config file when watching
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/server.go b/commands/server.go
index 31ccb1e11..087e30e2e 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -93,6 +93,7 @@ func server(cmd *cobra.Command, args []string) {
if viper.GetBool("watch") {
serverWatch = true
+ watchConfig()
}
l, err := net.Listen("tcp", net.JoinHostPort(serverInterface, strconv.Itoa(serverPort)))