run_prod.py
This commit is contained in:
1 parent
83f80ab935
commit
85422a5bba
13 files changed
+50
-23
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
"""
|
||||
pip install hypercorn
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
from hypercorn.config import Config
|
||||
from hypercorn.asyncio import serve
|
||||
from api_server import app
|
||||
|
||||
config = Config()
|
||||
config.bind = ["0.0.0.0:2000"]
|
||||
asyncio.run(serve(app, config))
|
||||
Reference in new issue
Block a user