middleman watch. One of the directories I'm watching is symlinked. While this worked on middleman 3, it seems to have broken in the new version. There is a GitHub issue, middleman/middleman#2054, where @tdreyno offers a solution that seems to work, using
files.watch :source ..., but I'm not sure where I'm supposed to put this configuration, and I don't see anything in the documentation mentioning it. Could someone point me in the right direction?
Thank you so much @tomrutgers for that information. We got
files.watch to successfully read the file and render it in the initial load; however it doesn't seem to be live updating. Our configuration is:
files.watch( :source, path: File.expand_path("/absolute/path/to/content/directory"), destination_dir: "content-directory", )
We can then, when running
middleman watch, visit
localhost:4567/content-directory/page.html, but when we update
/absolute/path/to/content/directory/page.html.md, we see the following in the terminal output:
== LiveReloading path: /
But we neither do we see the page reload, nor see the new content when we refresh the page. Any ideas? Did we set something up incorrectly?