mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Revert "commands: Avoid too many watch file handles causing the server to fail to start"
This reverts commit 3f38c785b7
.
This commit is contained in:
parent
d966f5d08d
commit
ffa2fe6117
1 changed files with 1 additions and 6 deletions
|
@ -261,11 +261,6 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
|
||||||
s.RegisterMediaTypes()
|
s.RegisterMediaTypes()
|
||||||
}
|
}
|
||||||
|
|
||||||
err = c.serve(sc)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch runs its own server as part of the routine
|
// Watch runs its own server as part of the routine
|
||||||
if sc.serverWatch {
|
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 {
|
func getRootWatchDirsStr(baseDir string, watchDirs []string) string {
|
||||||
|
|
Loading…
Reference in a new issue