This was an attempt of making a live-reload system with Golang and inotifywait
.
In the end it didn't work out because the application port (3000) would not be released until the parent proccess associated with it terminated.
So kill
killed the golang proccess, but the inotify.sh
proccess was still running
and the port wasn't released, giving a "Port already in use" error when the new proccess
started.
I have dropped this in favor of modd, but this might be useful for something one day.