Rails: How can I use system zip on Heroku to make a docx from an xml template?
问题 I have this working locally, storing the template files in #{Rails.root}/tmp , using system "cd tmp/template; zip -r ../#{@filename} *" to zip up the files, sending the .docx (zip archive) to S3 and then to the browser. The problem is that Heroku is not finding the files. Before I create the xml file, I am copying the template directory from another location ( system "cp -R support/ser_template tmp/" ). I understand Heroku's read-only filesystem but I can't have #{Process.pid} 's littering my