Ruby-Rails Serve Ftp File Direct to Client

Show files on FTP in a Rails App

You can use library links below:

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/ftp/rdoc/index.html

http://oreilly.com/catalog/ruby/chapter/ch04.html

and you can use EventMachine https://github.com/schleyfox/em-ftp-client.

Cheers!

Direct FTP access to Heroku?

No, it is not possible. While directly pushing with FTP is more simple, it is a fragile means of deploying code and managing applications (hard to track what was done, difficult to reproduce or manage rollbacks, etc).

Why is size of data transferred from server to client so much less than actual size of assets?

sprockets has an image compressor. I presume that is what's happening in your case.

https://github.com/botandrose/sprockets-image_compressor



Related Topics



Leave a reply



Submit