heroku resets the text file in my project every 24 hours

对着背影说爱祢 提交于 2021-02-10 14:33:55

问题


I published a project in Heroku. The text file in my project is reset every 24 hours, all data in it is lost. How do I solve the problem?


回答1:


You cannot.

Heroku Dynos restart every 24 hours and any file change is discarded (see Heroku ephemeral filesystem)

If you need to persist data you can use a DB (ie Postgres) or a remote storage (ie Amazon S3)



来源:https://stackoverflow.com/questions/65552892/heroku-resets-the-text-file-in-my-project-every-24-hours

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!