mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
12 lines
235 B
Python
12 lines
235 B
Python
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)
|