Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku local persistent storage

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.

like image 524
Someone Avatar asked Mar 13 '17 23:03

Someone


Video Answer


1 Answers

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

like image 101
Max Woolf Avatar answered Oct 08 '22 07:10

Max Woolf