Skip to content

Commit

Permalink
Merge pull request #2954 from chrisfinazzo/remove-explicit-serve-from…
Browse files Browse the repository at this point in the history
…-docs
  • Loading branch information
parkr committed Sep 27, 2014
2 parents a041d50 + 4a5f70b commit 7539e21
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions site/_docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,24 @@ 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.
# If you need to kill the server, you can `kill -9 1234` where "1234" is the PID.
# 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>

$ jekyll serve --watch
# => Same as `jekyll serve`, but watch for changes and regenerate automatically.
{% highlight bash %}
$ jekyll serve --no-watch
# => Same as `jekyll serve` but will not watch for changes.
{% endhighlight %}

These are just a few of the available [configuration options](../configuration/).
Expand All @@ -71,4 +81,4 @@ $ jekyll build --source _source --destination _deploy
{% endhighlight %}

For more about the possible configuration options, see the
[configuration](../configuration/) page.
[configuration](../configuration/) page.

0 comments on commit 7539e21

Please sign in to comment.