himanshuo / gameoflife

The Game of Life
GNU General Public License v2.0
1 stars 0 forks source link

livereload #18

Open himanshuo opened 9 years ago

himanshuo commented 9 years ago

Idea of livereload is simple, but (https://github.com/codegangsta/gin) difficult to actually do apparently. It is probably best to start recreating this yourself and then use gin.

himanshuo commented 9 years ago

Actually, one super awesome thing would be is to make a shell script that reruns the entire go run main.go command everytime there is a difference in any of the recursive files. --would use diff to get difference --recursive --run a command

himanshuo commented 9 years ago

http://man7.org/linux/man-pages/man7/inotify.7.html

is a file event notifier for linux that is used in the python watchdog module

himanshuo commented 9 years ago

It is messy in bash. Perhaps make a basic golang version first and then you could potentially use the concepts from that to make a bash version. Anyhow, look at and understand the given gin link above to understand.