How to create files and then zip / compress with Heroku?

I kind of want to do the opposite of this.

Instead of unzipping and adding collection files to S3 I want

At the request of the user:

  • create a bunch of xml files
  • zip xml files with some images (previously created images are placed on s3)
  • download zip

Does anyone know a good way to do this? I think I could handle this without a problem on a regular machine, but Heroku complicates some things by having a read-only file system.

+5
source share
1 answer

From the heroku documentation on a read-only file system :

, :./tmp . /log ( ). , , # {RAILS_ROOT}/tmp/myfile _ # {Process.pid}. , ( ), - .

xml tmp/ , s3 (?) zip, tmp/, mime, . , , , tmp. , , , .

: , - RubyZip, zip , .

+4

All Articles