Thanks for all the suggestions!! I save the file to tmp and then upload it to a Rackspace CloudFiles container. So far it works fine.
On Dec 13, 3:21 pm, Jimmy Thrasher <[email protected]> wrote: > On Mon, Dec 13, 2010 at 7:03 AM, Petros Amiridis <[email protected]>wrote: > > > I want to save a yml file generated by the tolk gem. It's only for > > development purposes, not for production. I mean, the file is going to > > be downloaded by me, not by the users. Do you think there is a better > > way to do it? > > It depends on how large it is. The free Memcache support will give you the > ability to insert objects up to 1MB using just Rails.cache, up to 5MB total. > You could also store it as a blob in your DB, which would ultimately get > stored as a file anyway. Or you could use the free Redis to Go, or the free > Mongo HQ. Lots of options when you don't need a lot of space and just need > a place to tuck away a file. > > The tmp fs idea is just fine, so long as you're willing to regenerate the > file whenever it's not available. If it takes longer than 30s to generate, > you might be better off with the other two ideas, just for simplicity. > > One last idea that would work in production would be to use a 3rd party > storage setup, like S3. Quite simple to use, and very very cheap (I > regularly receive AWS bills of around $0.04 US. > > Hope that helps, > > Jimmy > > -- > +1-919-627-7546 -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
