K
K
kreg1g2018-10-21 17:59:22
Heroku
kreg1g, 2018-10-21 17:59:22

Why are text files being reset when python worker is restarted on heroku?

Application in python, the structure is: app.py 1.txt 2.txt, app.py is a worker, and data is 1.txt and 2.txt (json format). When the server is rebooted by mistake or manually, it rolls back all changes in text files to their original state. Why? How to avoid? And are there any recommendations on how best to store simple data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-10-21
@kreg1g

Does anyone even read the documentation? On Heroku, the file system is temporary. The platform can kill your instance at any time, launch several copies of it, or transfer it to another server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question