So I have a user model and upon a user\'s registration I need to generate a file with some specific user information in it. Heroku is not allowing me to do that. Is there an
On the Cedar stack, the filesystem is ephemeral, which means that the filesystem only exists for the duration of the dyno (which is an unknown and unpredictable amount of time).
On the older stacks, only /tmp is writable, and again is ephemeral.
Therefore, to produce a file and export it you need to think about how you need to deliver the file.
If it's for a download later on, can you produce the file from the database at any time (thus saving the need for a file to be written out at all).
If it's for download now, stream it back to the end user.
It it's for export to S3, do that.