mirror of https://github.com/encode/starlette.git
Tweak example: access logs on, port 8000
This commit is contained in:
parent
78d1829758
commit
e6cd2d7e86
|
@ -57,7 +57,7 @@ def homepage(request):
|
|||
return JSONResponse({'hello': 'world'})
|
||||
|
||||
if __name__ == '__main__':
|
||||
uvicorn.run(app, host='0.0.0.0', port=8001, access_log=False)
|
||||
uvicorn.run(app, host='0.0.0.0', port=8000)
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
|
|
@ -56,7 +56,7 @@ def homepage(request):
|
|||
return JSONResponse({'hello': 'world'})
|
||||
|
||||
if __name__ == '__main__':
|
||||
uvicorn.run(app, host='0.0.0.0', port=8001, access_log=False)
|
||||
uvicorn.run(app, host='0.0.0.0', port=8000)
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
|
Loading…
Reference in New Issue