开发者

Heroku: Rails 3 and rmagick

开发者 https://www.devze.com 2023-01-20 21:32 出处:网络
I\'m seeing the following error when trying to upload a photo for cropping on herok开发者_JS百科u with the paperclip plugin.

I'm seeing the following error when trying to upload a photo for cropping on herok开发者_JS百科u with the paperclip plugin.

Paperclip::CommandNotFoundError

I believe I've successfully install rmagick on a rails 3 instance with bamboo as the stack. Why am i seeing this error?

has_attached_file :avatar, :styles => {:large => "600x600>",:small => "100x100#" }, :processors => [:cropper]
   attr_accessor :crop_x,:crop_y,:crop_w,:crop_h
   after_update :reprocess_avatar, :if => :cropping?


There's not a lot of context for this, but how are you uploading/storing the images? Are you using Amazon S3 or some other asset server?

Heroku does not support file storage.

Here is a sample Rails 2.3 app showing usage of Paperclip + S3 on Heroku

0

精彩评论

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

关注公众号