mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
1 parent
03a7016104
commit
c00a1fcb7f
1 file changed
+4
@@ -71,6 +71,10 @@ func server(cmd *cobra.Command, args []string) {
|
|||||||
viper.Set("Watch", true)
|
viper.Set("Watch", true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if viper.GetBool("watch") {
|
||||||
|
serverWatch = true
|
||||||
|
}
|
||||||
|
|
||||||
l, err := net.Listen("tcp", net.JoinHostPort(serverInterface, strconv.Itoa(serverPort)))
|
l, err := net.Listen("tcp", net.JoinHostPort(serverInterface, strconv.Itoa(serverPort)))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
l.Close()
|
l.Close()
|
||||||
|
|||||||
Reference in new issue
Block a user