himanshuo / gameoflife

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

golang live reload module #39

Open himanshuo opened 8 years ago

himanshuo commented 8 years ago

Purpose

Reload the golang server as I edit files. This is especially helpful for when making ui changes on the frontend with js, html, css.

Note: this is a Golang version. There is an alternate version in bash.

Issues

https://github.com/himanshuo/gameoflife/issues/18

Progress

himanshuo commented 8 years ago

DO NOT have to do this by running a bash command from golang (using exec package) but probably can just turn main.go into a package, import from there, and then run that.

himanshuo commented 8 years ago

I think figuring out how to make the http server stop would be my first smart usage of go channels. Try it!

himanshuo commented 8 years ago

This looks interesting: http://feedback.livereload.com/knowledgebase/articles/86174-livereload-protocol