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
A livereload server for wsgi #47
Comments
@miracle2k any suggestions? |
A significant challenge for me was integrating the tornado livereload server that currently exists with werkzeug's "runserver". Two thoughts:
The new approach would solve (1) nicely. For (2), the API I would imagine to API to look something like this:
But this presumably cannot be done without getting rid of tornado and thus a huge rewrite. So I would be happy if instead of letting livereload serve I could still optionally do:
|
@miracle2k you will not need werkzeug's runserver. This server will auto reload on source change too. |
Works good for me, and can easily replace Django's runserver by using this as wsgi_app:
The change from current master would be to not have a global Task object, but add them to the server directly? |
The latest code is no wsgi branch. |
released. |
Now, livereload will be a library rather than an application. in version: 2.0.0
With this snippet it will serve an wsgi application, and it will insert the livereload.js script into the response body.
The text was updated successfully, but these errors were encountered: