add note that running with watch doesn't produce a site suitable for deployment

This commit is contained in:
riboflavin 2015-02-17 18:08:54 -05:00 committed by spf13
parent e31536dd85
commit aeddaee901

View file

@ -54,18 +54,15 @@ Make sure either `hugo` is in your `PATH` or provide a path to it.
## Common Usage Example ## Common Usage Example
The most common use is probably to run `hugo` with your current The most common use is probably to run `hugo` with your current directory being the input directory.
directory being the input directory.
$ hugo $ hugo
> X pages created > X pages created
in 8 ms in 8 ms
If you are working on things and want to see the changes If you are working on things and want to see the changes immediately, tell Hugo to watch for changes.
immediately, tell Hugo to watch for changes.
Hugo will watch the filesystem for changes, rebuild your site as soon as a file Hugo will watch the filesystem for changes, rebuild your site as soon as a file is saved.
is saved.
$ hugo -s ~/mysite --watch $ hugo -s ~/mysite --watch
28 pages created 28 pages created
@ -73,9 +70,8 @@ is saved.
Watching for changes in /Users/spf13/Code/hugo/docs/content Watching for changes in /Users/spf13/Code/hugo/docs/content
Press Ctrl+C to stop Press Ctrl+C to stop
Hugo can even run a server and create your site at the same time! Hugo Hugo can even run a server and create a site preview at the same time! Hugo
implements [LiveReload](/extras/livereload/) technology to automatically reload any open pages in implements [LiveReload](/extras/livereload/) technology to automatically reload any open pages in all browsers (including mobile). (Note that you'll need to run without -w before you deploy your site.)
all browsers (including mobile).
$ hugo server -ws ~/mysite $ hugo server -ws ~/mysite
Watching for changes in /Users/spf13/Code/hugo/docs/content Watching for changes in /Users/spf13/Code/hugo/docs/content
@ -83,5 +79,4 @@ all browsers (including mobile).
Press Ctrl+C to stop Press Ctrl+C to stop
28 pages created 28 pages created
0 tags created 0 tags created
in 18 ms in 18 ms