ruby on rails - Carrierwave/fog are uploading files to S3, but the app is still trying to use the local path to access images -
i know broad question, , i'm biting off little more can chew first stab @ rails app, here am.
i tried add image upload/crop basic status app. working fine uploading images , cropping them carrierwave, started using fog upload s3, ran issues.
the image, , it's different sizes, appear ending on s3 fine, app still trying access image "/assets/uploads/entry/image/65/large_img_0035.jpg"
locally, shows broken image, on heroku breaks whole thing because
actionview::template::error (uploads/entry/image/1/large_img_0035.jpg isn't precompiled
the heroku error makes sense me because shouldn't there. i've combed through app don't know what's forcing this. i'll post code thinks work? in advance!
clarification:
just clarify, images uploading s3 fine, problem how app trying display image_url
the app using local path in asset pipeline, not s3 path it's uploading to.
i having same issue. in carrierwave initializer setting host
s3.amazonaws.com
when removed line altogether urls started working.
i hope helps resolve issue, fought several hours!
Comments
Post a Comment