-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restart when template files were edited #44
Comments
+1 |
2 similar comments
+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. |
@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 |
…extensions to watch for changes. Addresses issue codegangsta#44. Restarting on template change can be achieved using flags "-e .go -e .html".
…extensions to watch for changes. Addresses issue codegangsta#44. Restarting on template change can be achieved using flags "-e .go -e .html".
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.The text was updated successfully, but these errors were encountered: