I'm working to create an environment that will enable multiple different non-technical people to easily add/edit content in their Hugo site. To that end, I've created a vagrant/virtualbox vm setup to ease installation of the environment and to streamline editing and previewing changes. With this strategy, initial install is a breeze (~5 min unattended) and keeps things clean. However, we're stuck since the server doesn't seem to successfully watch for changes and reload with LiveReload.
I've created a basic repo to illustrate this issue. Steps to replicate:
Fire up a VM with a basic hugo site:
$ git clone --recursive [email protected]:marcguyer/hugo-vagrant-example.git
$ cd hugo-vagrant-example
$ vagrant up
$ vagrant ssh -c 'cd /vagrant; hugo server --theme=hugo_theme_robust --bind=0.0.0.0'
Load up the example static page at http://localhost:1313/test.html.
Make a change to the static page:
echo "test edit" >> static/test.html
Observe that the content does not change until the
hugo server command is restarted.
I've attempted to work around this issue by setting up the vagrant config to use NFS for directory syncing but that doesn't work either. That's not a good workaround anyway since many of our users are on Winders.