Open runemadsen opened 9 years ago
+1
+1
+1
My (albeit barbaric) solution was fork the repo and check if the extension is .go or .html, and I use that binary instead.
https://github.com/bcspragu/gin/commit/4f3b70d3b27a5685428592b96af622d4a15350f4
@bcspragu: very useful addition. make a pull request?
In it's current state, it's too specific. I'll turn it into a command line flag that takes a list of extensions to allow, and I'll make a pull request of that.
A better approach would allow some cli arguments. @codeskyblue does a really good job with a JSON config file: https://github.com/codeskyblue/fswatch/blob/master/fswatch.go#L231
+1
thanks @drewwells for using fswatch. Use a config file like json is very useful when monitor is complex, I have been using this way for a long time.
+1
Right now
gin
only listens to.go
files, which requires me to restart the server to see changes to.html
files. It might be useful to be able to specify extra file extension to watch.