From the Heroku Information Page on a Read-Only File System
"There are two directories that you can write: ./ tmp and. / Log (under your application root). If you want to temporarily delete the file for the duration of the request, you can write it to the file name, for example # {RAILS_ROOT} / tmp / myfile _ # {Process.pid}. There is no guarantee that this file will be present on subsequent requests (although it may be), so it should not be used for any permanent storage. "
Does anyone know how often files are deleted from the /tmp folder in Heroku?
source share