V
V
Vovan20052020-02-19 17:34:52
Python
Vovan2005, 2020-02-19 17:34:52

Is it possible to get Heroku to work without regular reboots?

I host my bot on Heroku. This bot must receive the username and password of users and then operate on the data obtained using the username and password, respectively. But Heroku stops the host process after a certain period of time and all received data (written in variables) disappears => the user must log in again. Please tell me how to solve this problem. Thank you for attention.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dr. Bacon, 2020-02-19
@bacon

There are a lot of bot writers, but the basics don’t know anything, write not to variables, but to something more permanent: files, databases, etc.

S
Sergey Gornostaev, 2020-02-19
@sergey-gornostaev

Yes, it's easy to solve this problem - you need to learn how to write 12-factor applications.

R
Roman Mirilaczvili, 2020-02-19
@2ord

In Heroku, in my opinion, there is no other way. If an application does not work correctly after a reboot, then it is not designed correctly.
Plus this:
https://devcenter.heroku.com/changelog-items/344

A
Andrey, 2020-02-19
@anerev

Since sqlite3 will not work on heroku either, free postgres remains https://devcenter.heroku.com/articles/heroku-postgresql

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question