health check
This commit is contained in:
parent
c4654e5496
commit
70f1e77b83
@ -23,7 +23,7 @@ class Command(BaseCommand):
|
|||||||
return
|
return
|
||||||
web_working = True
|
web_working = True
|
||||||
try:
|
try:
|
||||||
code = get("http://dev.sprinthub.ru/").status_code
|
code = get("http://web:80").status_code
|
||||||
if code != 200:
|
if code != 200:
|
||||||
web_working = False
|
web_working = False
|
||||||
except:
|
except:
|
||||||
@ -32,7 +32,7 @@ class Command(BaseCommand):
|
|||||||
bot.send_message(84367486, "Сайт сдох")
|
bot.send_message(84367486, "Сайт сдох")
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
get("http://dev.sprinthub.ru:5555")
|
get("http://storage:5555")
|
||||||
except:
|
except:
|
||||||
bot.send_message(84367486, "Файловое хранилище сдохло")
|
bot.send_message(84367486, "Файловое хранилище сдохло")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user