mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Default to Uvicorn workers=1, refs #999
This commit is contained in:
parent
2458d7b766
commit
86823ae6f7
3 changed files with 4 additions and 14 deletions
|
|
@ -465,7 +465,9 @@ def serve(
|
|||
url = "http://{}:{}/".format(host, port)
|
||||
if open_browser:
|
||||
webbrowser.open(url)
|
||||
uvicorn.run(ds.app(), host=host, port=port, log_level="info", lifespan="on")
|
||||
uvicorn.run(
|
||||
ds.app(), host=host, port=port, log_level="info", lifespan="on", workers=1
|
||||
)
|
||||
|
||||
|
||||
async def check_databases(ds):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue