Skip to content

Commit

Permalink
ci: docker health check (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeeeenster authored Jan 4, 2024
1 parent 445dc2b commit f98de7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/scripts/healthcheck.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys

import requests

url = "http://localhost:8000/health"
status = requests.get(url).status_code

sys.exit(0 if 200 >= status < 300 else 1)

1 comment on commit f98de7b

@vercel
Copy link

@vercel vercel bot commented on f98de7b Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.