Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-21 17:32:20 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-21 17:32:20 +0300
commitffa2fe61172aa0d892234b23d1497c77a6a7f5c4 (patch)
treec4e3463deed17bbebcdcfe86b51b5774bcd8e25d /commands
parentd966f5d08d7f75f1ae9acd94e292bf61de2adf0d (diff)
Revert "commands: Avoid too many watch file handles causing the server to fail to start"
This reverts commit 3f38c785b7208440e2a9dd9a80cb39d4ae23e676.
Diffstat (limited to 'commands')
-rw-r--r--commands/server.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/commands/server.go b/commands/server.go
index 48e76da6b..09cf43b24 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -261,11 +261,6 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
s.RegisterMediaTypes()
}
- err = c.serve(sc)
- if err != nil {
- return err
- }
-
// Watch runs its own server as part of the routine
if sc.serverWatch {
@@ -288,7 +283,7 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
}
- return nil
+ return c.serve(sc)
}
func getRootWatchDirsStr(baseDir string, watchDirs []string) string {