Skip to content
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

Open
runemadsen opened this issue Nov 16, 2014 · 10 comments
Open

Restart when template files were edited #44

runemadsen opened this issue Nov 16, 2014 · 10 comments

Comments

@runemadsen
Copy link

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.

@runemadsen runemadsen changed the title Restart when template files were edites Restart when template files were edited Nov 16, 2014
@joshkamau
Copy link

+1

2 similar comments
@bikbah
Copy link

bikbah commented Dec 10, 2014

+1

@534N
Copy link

534N commented Dec 14, 2014

+1

@bcspragu
Copy link

My (albeit barbaric) solution was fork the repo and check if the extension is .go or .html, and I use that binary instead.

bcspragu@4f3b70d

@gobijan
Copy link

gobijan commented Jan 5, 2015

@bcspragu: very useful addition. make a pull request?

@bcspragu
Copy link

bcspragu commented Jan 5, 2015

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.

@drewwells
Copy link

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

@kmulvey
Copy link

kmulvey commented Jan 27, 2015

+1

@codeskyblue
Copy link

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.

@bravadomizzou
Copy link

+1

vladvelici added a commit to vladvelici/gin that referenced this issue Dec 10, 2015
…extensions to watch for changes.

Addresses issue codegangsta#44.
Restarting on template change can be achieved using flags "-e .go -e
.html".
vladvelici added a commit to vladvelici/gin that referenced this issue Dec 10, 2015
…extensions to watch for changes.

Addresses issue codegangsta#44.
Restarting on template change can be achieved using flags "-e .go -e
.html".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants