Heroku:Rails 3 和 rmagick
尝试使用回形针插件上传照片以在 heroku 上进行裁剪时,我看到以下错误。
Paperclip::CommandNotFoundError
我相信我已经成功地在 Rails 3 实例上安装了 rmagick,并以竹子作为堆栈。为什么我会看到这个错误?
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?
I'm seeing the following error when trying to upload a photo for cropping on heroku 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对此没有太多上下文,但是您如何上传/存储图像?您是否使用 Amazon S3 或其他资产服务器?
Heroku 不支持文件存储。
这是一个 示例 Rails 2.3 应用,显示了 Paperclip + S3 在 Heroku 上的用法
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