health check

This commit is contained in:
Egor Matveev 2022-03-28 13:15:26 +03:00
parent c4654e5496
commit 70f1e77b83

View File

@ -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, "Файловое хранилище сдохло")