2022年7月27日水曜日

Django シンプルヘルスチェック

$ vi Config/urls.py
from django.http           import     HttpResponse

urlpatterns = [
path( 'health', lambda r: HttpResponse()),
]

$ curl -i http:///localhost:8000/health

0 件のコメント:

コメントを投稿

ZABBIX8.0 with postgres and nginx

■インストール前に PHP8.2以上が必要。 sudo dnf install -y epel-release sudo dnf install -y http://rpms.remirepo.net/enterprise/remi-release-9.rpm # Rocky L...