Add a note about the separate commands, show an example without the watcher

This commit is contained in:
chrisfinazzo 2014-09-27 12:54:47 -04:00
parent f80d82cfcc
commit bec32b14cb
1 changed files with 14 additions and 1 deletions

View File

@ -41,6 +41,7 @@ preview what the generated site will look like in your browser locally.
{% highlight bash %} {% highlight bash %}
$ jekyll serve $ jekyll serve
# => A development server will run at http://localhost:4000/ # => A development server will run at http://localhost:4000/
# Auto-regeneration: enabled. Use `--no-watch` to disable.
$ jekyll serve --detach $ jekyll serve --detach
# => Same as `jekyll serve` but will detach from the current terminal. # => 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). # 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 %} {% 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/). These are just a few of the available [configuration options](../configuration/).
Many configuration options can either be specified as flags on the command line, 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` or alternatively (and more commonly) they can be specified in a `_config.yml`