A
A
Andrey2018-10-26 01:46:30
Heroku
Andrey, 2018-10-26 01:46:30

How to fix dropping temporary files on Heroku?

I am writing for self-education of a bot in a telegram with a simple game. The bot can give the user the rating of all players.
The data is taken from a separate file with a list of participants and the number of points for each, respectively, during the game, this file is constantly updated at the time of the deployment, I had 70 points; I played and it became 80, it gives it correctly, everything is fine; but the next day I have 70 points again)
I'm not very good at Heroku yet, can I somehow fix this?
PS Deploy the bot via Heroku Git, if that's important

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2018-10-26
Kastelin @Vertonger

store this data somewhere else. memory in Heroku is temporary and they themselves say that if you save something there, you are guaranteed to lose it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question