Skip to content

Commit

Permalink
Added healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
blyedev committed Jun 15, 2024
1 parent c5e3d45 commit 46950a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/pms_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"health_check",
"health_check.db",
"health_check.cache",
"health_check.storage",
"health_check.contrib.migrations",
"rest_framework",
"corsheaders",
"api",
Expand Down
1 change: 1 addition & 0 deletions backend/pms_api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from django.views.generic import RedirectView

urlpatterns = [
path("ht/", include("health_check.urls")),
path("admin/", admin.site.urls),
path("", RedirectView.as_view(url="api/", permanent=False)),
path("api/", include("api.urls")),
Expand Down
1 change: 1 addition & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ colorama==0.4.6
dill==0.3.7
Django==4.2.5
django-cors-headers==4.2.0
django-health-check==3.18.2
djangorestframework==3.14.0
isort==5.12.0
lazy-object-proxy==1.9.0
Expand Down

0 comments on commit 46950a2

Please sign in to comment.