on master help sign in
Add section about inotify
commit29a18d618849d9b1cc06d1aecfef1294d9e00dae authorJasper Van der Jeugt <jaspervdj@gmail.com> dateMon 7 Mar 2011, 15:25 (16 years ago) parent3724c5f
1 file changed+15−5
examples/hakyll/tutorial.markdown+15−5
examples/hakyll/tutorial.markdown+15−5
@@ -235,18 +235,28 @@ this can generate more traffic than necessary, since it is possible that some
235235files were not actually modified. If you use `rsync`, you can counter this using
236236the `--checksum` option.
237237
238+### Using inotify for the preview server
239+
240+Hakyll is able to use [inotify] to power the preview server. This is generally
241+faster and uses less resources than the default. However, [inotify] is only
242+supported on linux systems. You can enable the bindings using:
243+
244+ [jasper@phoenix] cabal install -finotify hakyll
245+
246+[inotify]: http://inotify.aiken.cz/
247+
238248Problems
239249--------
240250
241251### regex-pcre dependency on Mac OS X
242252
243253Hakyll requires [regex-pcre], which might fail to build on Mac OS X. To solve
244−this problem:
254+this problem, make sure the [pcre] C library is installed (via homebrew or
255+macports). Then install [regex-pcre] using:
256+
257+ cabal install --extra-include-dirs=/usr/local/include regex-pcre
245258
246−- make sure the [pcre] C library is installed (via homebrew or macports);
247−- install [regex-pcre] using
248− `cabal install --extra-include-dirs=/usr/local/include regex-pcre`;
249−- proceed to install Hakyll the regular way.
259+...and proceed to install Hakyll the regular way.
250260
251261[regex-pcre]: http://hackage.haskell.org/package/regex-pcre
252262[pcre]: http://www.pcre.org/