Skip to content

Commit 500b78d

Browse files
committed
Remove health check endpoint creation from docker-entrypoint.sh
1 parent cda80b6 commit 500b78d

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

apidemo/health_check.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

docker-entrypoint.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ mkdir -p "${APP_ROOT}/media"
1111
echo "Applying database migrations..."
1212
python manage.py migrate --noinput
1313

14-
# Create health check endpoint
15-
cat > apidemo/health_check.py << EOF
16-
from django.http import HttpResponse
17-
from django.urls import path
18-
19-
def health_check(request):
20-
return HttpResponse("ok")
21-
22-
urlpatterns = [
23-
path('health/', health_check, name='health_check'),
24-
]
25-
EOF
2614

2715
# Start the application
2816
echo "Starting application..."

0 commit comments

Comments
 (0)