Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ services:
- ./src/backend:/app
- ./data/static:/data/static
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request as u; u.urlopen('http://localhost:8000/healthz/', timeout=1)"]
test: ["CMD", "python", "-c", "import urllib.request as u; u.urlopen('http://localhost:8000/api/v1.0/healthz/', timeout=1)"]
interval: 3s
retries: 3
start_period: 10s
Expand Down Expand Up @@ -142,7 +142,7 @@ services:
- ./src/backend:/app
- ./data/static:/data/static
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request as u; u.urlopen('http://localhost:8000/healthz/', timeout=1)"]
test: ["CMD", "python", "-c", "import urllib.request as u; u.urlopen('http://localhost:8000/api/v1.0/healthz/', timeout=1)"]
interval: 3s
retries: 3
start_period: 10s
Expand Down
2 changes: 1 addition & 1 deletion src/backend/messages/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
path(settings.ADMIN_URL, admin.site.urls),
path("", include("core.urls")),
path(
"healthz/",
f"api/{settings.API_VERSION}/healthz/",
lambda _: HttpResponse("OK"),
name="healthcheck",
),
Expand Down
2 changes: 1 addition & 1 deletion src/backend/messages/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class QuietWSGIRequestHandler(django.core.servers.basehttp.WSGIRequestHandler):
def log_message(self, format, *args):
path = getattr(self, "path", "")
if path.strip("/") == "healthz":
if path.rstrip("/") == "/api/v1.0/healthz":
return
super().log_message(format, *args)

Expand Down