python 2.7 - Need to know how to use heroku's Ephemeral filesystem and write file to /tmp folder -


i new heroku.i have deployed app heroku has python script running on clock process.in script need write xml file using heroku's ephemeral filesystem in /tmp folder , need url file can use url other processing reads data file.

on heroku, cannot make file in /tmp publicly accessible. way have contents of file accessible via http transfer file somewhere else, such amazon s3, or scp other server.

think it: have 10 dynos running, , makes request causes new file newfile created in /tmp. well, it's in /tmp on 1 of dynos. if next request load balancer directs different dyno, file nonexistent. moreover, dyno created newfile on may not exist 5 seconds later! heroku spins dynos , down time.

http stateless protocol. if design system properly, should treat such.


Comments