mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Rewrite to rust init
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import os
|
||||
|
||||
import httpx
|
||||
|
||||
|
||||
CHECK_URL = os.environ.get("HEALTHCHECK_URL", "http://localhost:8080/healthcheck")
|
||||
|
||||
response = httpx.get(CHECK_URL)
|
||||
|
||||
print(f"HEALTHCHECK STATUS: {response.text}")
|
||||
exit(0 if response.status_code == 200 else 1)
|
||||
@@ -1,8 +0,0 @@
|
||||
cd /app
|
||||
|
||||
rm -rf prometheus
|
||||
mkdir prometheus
|
||||
|
||||
alembic -c ./app/alembic.ini upgrade head
|
||||
|
||||
gunicorn -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080 --workers=2 --timeout 30 --max-requests=512000 --max-requests-jitter=3
|
||||
Reference in New Issue
Block a user