fileherokuclassificationcedar

How to download an ephemeral file from Heroku Cedar


I have a rails project hosted on Heroku Cedar that does the following:

The problem is that the classifier requires writing to a file. However, when I run the scripts on Heroku Cedar, it creates an ephemeral file that isn't permanent.

My questions are:

  1. Is there a way to download the ephemeral file I created by running a script on Heroku?
  2. What's a better way to handle situation like this?

Solution

  • In short No. You want to be storing any generated data in some sort of persistent file/data store. You should look at pushing these files to S3 or similar.