小编eco*_*ng5的帖子

Paperclip在AWS Elastic Beanstalk上找不到ImageMagick

我正在运行rails 4.1和paperclip 4.2,在我部署到AWS Elastic Beanstalk之后我无法使用paperclip将文件保存到S3,我收到一个错误:

Command :: file -b --mime '/tmp/308f17f99f5a4157c8839634d039b1c620141002-22818-7crhx4.jpg'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/308f17f99f5a4157c8839634d039b1c620141002-22818-xo8669.jpg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::Errors::CommandNotFoundError: Could not run the `identify` command. Please install ImageMagick.>
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?如何将ImageMagick安装到ELB?

ruby-on-rails amazon-s3 paperclip amazon-web-services

5
推荐指数
1
解决办法
1631
查看次数