Skip to content

Commit

Permalink
health check endpoint added
Browse files Browse the repository at this point in the history
  • Loading branch information
EsubalewAmenu authored Nov 30, 2024
1 parent b125ba1 commit 9a28e52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ jobs:
sed -i 's|REPLACE_ME_IPFS_BLOCKFROST|${{ secrets.IPFS_BLOCKFROST }}|g' .aws/task-definition.json
- name: Debug Task Definition
run: |
cat .aws/task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
Expand Down
6 changes: 6 additions & 0 deletions apps/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
from .forms import ContactForm


from django.http import JsonResponse

def health_check(request):
return JsonResponse({"status": "healthy"}, status=200)


logger = logging.getLogger(__name__)


Expand Down
2 changes: 2 additions & 0 deletions telelbirds/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
from apps.customer import urls as CustomerUrls
from apps.chicks import urls as ChicksUrls
from apps.inventory import urls as InventoryUrls
from apps.core.views import health_check

urlpatterns = [
path('admin/', admin.site.urls),
path('health/', health_check),
path('', include(BreederUrls)),
path('', include(HatcheryUrls)),
path('', include(CustomerUrls)),
Expand Down

0 comments on commit 9a28e52

Please sign in to comment.