-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add reloading on addtional directories #2167
Conversation
I would use name other than I suppose the use case for this is to handle changes in templates, config files etc? |
Unrelated to this PR, but worth of notice is the use of livereload on client side. Dunno if there are any Sanic extensions that could already do that, and also connect with the server reloads. |
This is a good call out. I was having trouble coming up with a good name. I looked at
Not right now. I really just wanted to sneak the functionality in a fairly low touch way. The
Yeah. The other place that I have personally run into it is with maintaining openapi spec files.
Agreed. It is probably the realm for extension. I built this that I use when working on slide presentations: https://github.com/ahopkins/pyconil2021-liberate-your-api/blob/main/presentation/server.py |
Also added
|
Great! Could you also change the short argument to
|
|
Resolves #2143
This allows the auto-reloader to watch additional directories beyond just the Python modules for changes. Implemented in two ways:
Via app.run
Via cli