G
G
Gruapk2020-09-06 14:32:44
Heroku
Gruapk, 2020-09-06 14:32:44

How to catch reboot on heroku server?

How can I catch a reload on heroku so I can make a reload notification through the VK bot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2020-09-06
@2ord

In theory, you can try to catch the SIGTERM signal and do something before restarting. But whether it can be done in practice - I do not know. Need to try.
https://devcenter.heroku.com/articles/dynos#restarting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question