GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Live reload for aio.http with --debug

オープン
#397 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。