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

Add autoreload option #778

Closed
asvetlov opened this issue Feb 14, 2016 · 13 comments
Closed

Add autoreload option #778

asvetlov opened this issue Feb 14, 2016 · 13 comments

Comments

@asvetlov
Copy link
Member

One of the most requested features is autoreloading aiohttp server on source file changes.

I never use the feature at all and don't have a strong personal feeling for adding it.
It may have negative effects by abnormal breaking opened connections (e.g. websockets) also.

But I see to many requests for the feature over internet for last months, so we need to implement it.

It's a easy task though.

@asvetlov asvetlov added this to the 0.22 milestone Feb 14, 2016
@ssbb
Copy link
Contributor

ssbb commented Mar 20, 2016

This functionality is provided by aiohttp_utils already. Also it's possible to use watchdog (watchmedo) without writing any Python code :)

@ssbb
Copy link
Contributor

ssbb commented Mar 20, 2016

As, forgot. There is also --reload option for gunicorn which is works for me.

@asvetlov asvetlov added the sprint label Jun 2, 2016
@samuelcolvin
Copy link
Member

https://github.com/samuelcolvin/aiohttp_runserver

As I just explain on the mailing list I don't think it makes sense to include all the debug paraphernalia in aiohttp itself.

Whether it's this library or anther I think the should be a companion tool for aiohttp which help during development.

I built aiohttp-runserver after using gunicorn with --reload for a while and getting annoyed at it's logging (amount other things), particularly when you change the terminal window size!

dimonb pushed a commit to dimonb/aiohttp that referenced this issue Jul 23, 2016
dimonb added a commit to dimonb/aiohttp that referenced this issue Jul 23, 2016
SergeChmelev added a commit to SergeChmelev/aiohttp that referenced this issue Jul 23, 2016
SergeChmelev added a commit to SergeChmelev/aiohttp that referenced this issue Jul 23, 2016
@ohsabry
Copy link

ohsabry commented Aug 24, 2016

@samuelcolvin just my two cents, but as someone who recently bet on using aiohttp in production, it would be a huge turn off for me if all of the debug and development tools are scattered around a bunch of small external repositories that may never get maintained.

unless it's a single other lib that's officially maintained and has all of the development tools, having a bunch of small libs these small libraries will lead to a typical node/reactjs style bootstrapping nightmare for new adopters. https://twitter.com/thomasfuchs/status/708675139253174273

The batteries included mentality of the python community is what made me choose aiohttp and not something built on top of node.

@asvetlov asvetlov removed this from the 0.22 milestone Aug 25, 2016
SergeChmelev added a commit to SergeChmelev/aiohttp that referenced this issue Aug 28, 2016
@samuelcolvin
Copy link
Member

@ohsabry I've create a new issue #1156 addressing this very reasonable concern directly.

@mshahbazi
Copy link

gunicorn --reload does not work immediately. it waits until the next timeout loop. any idea?

@samuelcolvin
Copy link
Member

samuelcolvin commented Nov 28, 2016

@mshahbazi have a try with aiohttp-devtools, it's still a work in progress but the runserver command is working well and has autoreload by default.

@mshahbazi
Copy link

mshahbazi commented Nov 28, 2016 via email

@samuelcolvin
Copy link
Member

Hi @mshahbazi happy to help but please repost the question over on https://github.com/samuelcolvin/aiohttp-devtools to avoid even more confusion.

A few more details like OS and aiohttp version would be helpful too.

@samuelcolvin
Copy link
Member

For me https://github.com/samuelcolvin/aiohttp-devtools is ready for use so this can be closed.

@fafhrd91
Copy link
Member

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants