Different settings per app - how to mount?

39 views
Skip to first unread message

Ramon Tayag

unread,
May 28, 2012, 11:24:00 PM5/28/12
to dragonf...@googlegroups.com, kr...@aelogica.com
I'm working on an app where I want the images to be hosted locally, but the file attachments to be hosted on S3.

1. I configured my web app to have 2 dragonfly apps with different configurations - is this correct?
2. Sometimes I notice that images don't load properly. I get the error: `function thumb not registered with <# Dragonfly::Processor >` (just typed that - not pasted).

I attached the "Dragonfly::Middleware" twice - one for images, one for attachments. When I run `rake middleware` I see two "Dragonfly::Middleware" rack apps. This feels weird to me.

Am I doing something wrong?

Ramon Tayag

Mark Evans

unread,
May 29, 2012, 4:42:39 AM5/29/12
to dragonf...@googlegroups.com
make sure they have different url_format configurations, so that the routes don't get confused, e.g. one with "/attachments/:job/:basename.:format" and one with "/images/:job/:basename.:format" or something

Ramon

unread,
Aug 6, 2012, 11:18:32 AM8/6/12
to dragonf...@googlegroups.com
I never thanked you, Mark.

Thanks!
Reply all
Reply to author
Forward
0 new messages