From 70f1e77b83fe715eb4ca7e20b2548bc3d0a19421 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Mon, 28 Mar 2022 13:15:26 +0300 Subject: [PATCH] health check --- daemons/management/commands/health_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemons/management/commands/health_check.py b/daemons/management/commands/health_check.py index dd10204..e40cff8 100644 --- a/daemons/management/commands/health_check.py +++ b/daemons/management/commands/health_check.py @@ -23,7 +23,7 @@ class Command(BaseCommand): return web_working = True try: - code = get("http://dev.sprinthub.ru/").status_code + code = get("http://web:80").status_code if code != 200: web_working = False except: @@ -32,7 +32,7 @@ class Command(BaseCommand): bot.send_message(84367486, "Сайт сдох") return try: - get("http://dev.sprinthub.ru:5555") + get("http://storage:5555") except: bot.send_message(84367486, "Файловое хранилище сдохло")