This is a guard for nanoc.
Guard is a framework for listening to filesystem changes and acting upon them. Guard::Nanoc is a plugin for Guard that recompiles nanoc sites on changes.
Add this line to your application's Gemfile:
And then execute:
Enter the nanoc site directory for which you want to use Guard::Nanoc. Create a Guardfile using
$ bundle exec guard init nanoc
$ bundle exec guard
Whenever you change a file in the nanoc site directory now, the site will be recompiled!
To see the site:
$ bundle exec nanoc view
localhost:3000 in browser, in rare cases
3000 might be a higher number, it is displayed after running
nanoc view on the end of the message as
For best results keep both
nanoc view running at the same time (in separate shell windows/tabs).
After edditing and saving a file
guard will recompile required pages, it is required to reload the page in browser so the new content can be served by