Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question