summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorSteve Francia <steve.francia@gmail.com>2015-11-20 10:13:03 -0500
committerSteve Francia <steve.francia@gmail.com>2015-11-20 10:14:24 -0500
commit97d068958048daf65d84b2a8357f6f6fa3b207d1 (patch)
tree9591c39a62254a1ba11bbe1ef4b3546f10c36972 /commands/server.go
parent35abd179e2e9d2dc25706e1922f4084bbad92533 (diff)
Hugo server watch by default
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/commands/server.go b/commands/server.go
index 7c0ef78dd..c69c669cd 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -53,8 +53,10 @@ and use a more full featured server such as Nginx or Caddy.
'hugo server' will avoid writing the rendered and served content to disk,
preferring to store it in memory.
-Often server is paired with '--watch' which Hugo will look for changes to the source and
-continously rebuild and serve the website.`,
+By default hugo will also watch your files for any changes you make and
+automatically rebuild the site. It will then live reload any open browser pages
+and push the latest content to them. As most hugo sites are built in a fraction
+of a second you will be able to save and see your changes nearly instantly.`,
//Run: server,
}
@@ -81,7 +83,7 @@ func (f noDirFile) Readdir(count int) ([]os.FileInfo, error) {
func init() {
serverCmd.Flags().IntVarP(&serverPort, "port", "p", 1313, "port on which the server will listen")
serverCmd.Flags().StringVarP(&serverInterface, "bind", "", "127.0.0.1", "interface to which the server will bind")
- serverCmd.Flags().BoolVarP(&serverWatch, "watch", "w", false, "watch filesystem for changes and recreate as needed")
+ serverCmd.Flags().BoolVarP(&serverWatch, "watch", "w", true, "watch filesystem for changes and recreate as needed")
serverCmd.Flags().BoolVarP(&serverAppend, "appendPort", "", true, "append port to baseurl")
serverCmd.Flags().BoolVar(&disableLiveReload, "disableLiveReload", false, "watch without enabling live browser reload on rebuild")
serverCmd.Flags().BoolVar(&renderToDisk, "renderToDisk", false, "render to Destination path (default is render to memory & serve from there)")