Friday, January 25, 2013

Re: [Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

On Fri, Jan 25, 2013 at 9:44 PM, sagar p. <lists@ruby-forum.com> wrote:

> the Rails application gets the location string from
> the database and opens the matching local file
> from his or her computer. Is this possible???

To expand on Jordon's "Just no":

Heroku does not provide any local filesystem whatsoever. The only
files you can count on being there, are what your uploaded application
initially installs. The whole point of cloud-based automagically
scaling solutions like Heroku is that (assuming you spring for the
non-free plans) you get new resources spun up and down as needed.
Obviously they won't have all the local files that your app has
created.

HOWEVER...

There is a common solution to this, namely cloud *storage*. Store the
files on Amazon S3 or some such, and it will be a bit more complex
than local storage but still quite feasible... and cheap so long as
you don't store huge files or a huge number of them.

-Dave

--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate