summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-03-07 15:25:28 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-03-07 15:25:28 +0100
commit29a18d618849d9b1cc06d1aecfef1294d9e00dae (patch)
treebde3d16f1d59aac837059211b84a99e579e8d0cb
parent3724c5f4839005dee3a8a8f1c0c8fce39b504141 (diff)
downloadhakyll-29a18d618849d9b1cc06d1aecfef1294d9e00dae.tar.gz
Add section about inotify
-rw-r--r--examples/hakyll/tutorial.markdown20
1 files changed, 15 insertions, 5 deletions
diff --git a/examples/hakyll/tutorial.markdown b/examples/hakyll/tutorial.markdown
index dc184a7..74bf826 100644
--- a/examples/hakyll/tutorial.markdown
+++ b/examples/hakyll/tutorial.markdown
@@ -235,18 +235,28 @@ this can generate more traffic than necessary, since it is possible that some
files were not actually modified. If you use `rsync`, you can counter this using
the `--checksum` option.
+### Using inotify for the preview server
+
+Hakyll is able to use [inotify] to power the preview server. This is generally
+faster and uses less resources than the default. However, [inotify] is only
+supported on linux systems. You can enable the bindings using:
+
+ [jasper@phoenix] cabal install -finotify hakyll
+
+[inotify]: http://inotify.aiken.cz/
+
Problems
--------
### regex-pcre dependency on Mac OS X
Hakyll requires [regex-pcre], which might fail to build on Mac OS X. To solve
-this problem:
+this problem, make sure the [pcre] C library is installed (via homebrew or
+macports). Then install [regex-pcre] using:
+
+ cabal install --extra-include-dirs=/usr/local/include regex-pcre
-- make sure the [pcre] C library is installed (via homebrew or macports);
-- install [regex-pcre] using
- `cabal install --extra-include-dirs=/usr/local/include regex-pcre`;
-- proceed to install Hakyll the regular way.
+...and proceed to install Hakyll the regular way.
[regex-pcre]: http://hackage.haskell.org/package/regex-pcre
[pcre]: http://www.pcre.org/