Add a note about the separate commands, show an example without the watcher
This commit is contained in:
parent
f80d82cfcc
commit
bec32b14cb
|
@ -41,6 +41,7 @@ preview what the generated site will look like in your browser locally.
|
|||
{% highlight bash %}
|
||||
$ jekyll serve
|
||||
# => A development server will run at http://localhost:4000/
|
||||
# Auto-regeneration: enabled. Use `--no-watch` to disable.
|
||||
|
||||
$ jekyll serve --detach
|
||||
# => Same as `jekyll serve` but will detach from the current terminal.
|
||||
|
@ -48,6 +49,18 @@ $ jekyll serve --detach
|
|||
# If you cannot find the PID, then do, `ps aux | grep jekyll` and kill the instance. [Read more](http://unixhelp.ed.ac.uk/shell/jobz5.html).
|
||||
{% endhighlight %}
|
||||
|
||||
<div class="note info">
|
||||
<h5>Be aware of default behavior</h5>
|
||||
<p>
|
||||
As of version 2.4, the <code>serve</code> command will watch for changes automatically. To disable this, you can use <code>jekyll serve --no-watch</code>, which preserves the old behavior.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% highlight bash %}
|
||||
$ jekyll serve --no-watch
|
||||
# => A development server will run at http://localhost:4000/
|
||||
{% endhighlight %}
|
||||
|
||||
These are just a few of the available [configuration options](../configuration/).
|
||||
Many configuration options can either be specified as flags on the command line,
|
||||
or alternatively (and more commonly) they can be specified in a `_config.yml`
|
||||
|
|
Loading…
Reference in New Issue