开发者

rails paperclip batch processing

How can I use paperclip to move files uploaded using ftp to a server, create thumbnails and then move it all to aws?

Using paperclip as part of an upload process is no problem, and moving the files to aws as part of that process is also no big problem, but how can I use paperclip as part of something开发者_运维百科 running entirely using cron and rake?


http://codewordstudios.com/posts/3-delayed-upload-delivery-to-s3-with-paperclip-delayed-job

In rake you can require the rails environment with task :yourtask => :environment.

If you're trying to do so in a way which doesn't touch a database then you might need to look into creating your own Paperclip::Attachment instances and dealing with their events directly. (I'm not entirely the expert on how you'd do that.)

http://rdoc.info/github/thoughtbot/paperclip#

Perhaps you could elaborate on exactly what you'd like to happen and what solutions you would not like.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜