GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Live reload for aio.http with --debug

未关闭
#397 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement P2
主要语言
Python
星标
968
派生
128
PR 合并指标
30 天内没有已合并 PR

描述

1.
```main.py
import functions_framework.aio
from starlette.requests import Request
from starlette.responses import Response
@functions_framework.aio.http
async def main(request: Request) -> Response:
print("Hello world")
return Response(status_code=200)
```
2. run functions-framework --target=main --debug
3. Edit `print("Hello world")` -> `print("I've updated")`

Expected: Should reload the application
Result: Does nothing

Seems like StarletteApplication probably needs something like `self.options.reload = debug`?

CC @taeold

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。