GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python
Live reload for aio.http with --debug
Offen
enhancement
P2
- Vorherrschende Sprache
- Python
- Sterne
- 968
- Forks
- 128
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.