mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 04:25:38 +01:00
Use uvloop
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import httpx
|
||||
|
||||
|
||||
response = httpx.get("http://localhost:8080/healthcheck")
|
||||
print(f"HEALTHCHECK STATUS: {response.status_code}")
|
||||
exit(0 if response.status_code == 200 else 1)
|
||||
|
||||
@@ -4,4 +4,4 @@ rm -rf prometheus
|
||||
mkdir prometheus
|
||||
|
||||
alembic -c ./app/alembic.ini upgrade head
|
||||
uvicorn main:app --host 0.0.0.0 --port 8080
|
||||
uvicorn main:app --host 0.0.0.0 --port 8080 --loop uvloop
|
||||
|
||||
Reference in New Issue
Block a user