Heroku local persistent storage

谁说我不能喝 提交于 2020-01-14 14:08:00

问题


I have created a node app with local persistent storage in a .json file. It works fine running locally, but when I deploy it to heroku the persistent storage is modified, but then erased.


回答1:


Heroku does not provide any sort of persistent storage on dynos. If you need to persist files across sessions, you must use object storage such as Amazon S3.

https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem



来源:https://stackoverflow.com/questions/42775418/heroku-local-persistent-storage

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