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

reload not working for official quickstart sample on windows #229

Closed
NewUserHa opened this issue May 16, 2019 · 6 comments
Closed

reload not working for official quickstart sample on windows #229

NewUserHa opened this issue May 16, 2019 · 6 comments

Comments

@NewUserHa
Copy link
Contributor

1111.py

from aiohttp import web

async def hello(request):
    return web.Response(text="Hello, world")

app = web.Application()
app.add_routes([web.get('/', hello)])
web.run_app(app)

adev runserver 1111.py

then:
modify "Hello, world"

refresh 127.0.0.1, noting change.

@NewUserHa
Copy link
Contributor Author

if comment web.run_app(app), it work as expect. But:

�[35m[23:01:49]�[0m�[32m Starting aux server at http://localhost:8001 ◆�[0m
�[35m[23:01:49]�[0m�[32m Starting dev server at http://localhost:8000 ●�[0m
�[35m[23:02:10]�[0m �[34m●�[0m �[0mGET / 200 166B 0ms�[0m
�[35m[23:02:10]�[0m �[34m●�[0m �[0mGET / 200 166B 0ms�[0m
...

@samuelcolvin
Copy link
Member

No way around this in aiohttp-devtools.

moved to aio-libs/aiohttp#3775

@NewUserHa
Copy link
Contributor Author

please notice the new comment.

and could please add the solution to devtools' document to improve?

@NewUserHa
Copy link
Contributor Author

@samuelcolvin

@samuelcolvin
Copy link
Member

PR welcome to add a comment.

@NewUserHa
Copy link
Contributor Author

@samuelcolvin ok, but I meant the garbled text of adev stdout in the second reply.

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

2 participants