A
A
Andrey2019-12-05 02:35:33
Python
Andrey, 2019-12-05 02:35:33

How to store files in pickle module on heroku in python3?

In general, I upload my bot to heroku where it should, on command, read and load objects into a file via pickle, everything works and saves on the computer, the pickle module obviously also works on heroku, but if the bot is disabled or it reboots itself, then when you turn on the loaded the files will disappear, only the object that was loaded on the computer will be unloaded from the data file. Does anyone know how to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-12-05
@anerev

There is no file hosting on Heroku. Forget files. Modify your mowing bot as it should be to work with the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question