All Posts


Golang live-reload with Virtualbox shared folders

This week I was looking into a live reload solution for a golang project I was working on. The project is targeted at linux only.
My development machine is running Windows 10 and I am building and debugging the Go project on a Virtualbox VM running Ubuntu 18.10 with the project source code shared to the VM via virtualbox shared folders.

Due to using a virtualbox shared folder, filesystem events from Windows 10 are not picked up in the guest linux virtual machine. There are a few existing live reload utilities but none of them supported legacy polling (as far as I know) and so they didnt work for me. I came across Nodemon which does support legacy polling.

These are my notes on a live-reload solution using nodemon and a bash script when using virtualbox shared folders.


Copyright (c) 2021 Julien Dcruz