mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
main py
This commit is contained in:
@@ -17,7 +17,7 @@ async def run_bot():
|
|||||||
|
|
||||||
async def run_api():
|
async def run_api():
|
||||||
"""Run FastAPI application"""
|
"""Run FastAPI application"""
|
||||||
config = uvicorn.Config(app, host="localhost", port=8080, reload=True)
|
config = uvicorn.Config(app, host=["localhost", "185.139.70.62"], port=8080, reload=True)
|
||||||
server = uvicorn.Server(config)
|
server = uvicorn.Server(config)
|
||||||
try:
|
try:
|
||||||
await server.serve()
|
await server.serve()
|
||||||
|
Reference in New Issue
Block a user