0

我看到了为什么 Paperclip 在生产+开发中默默地失败了?回形针图像无法保存在生产轨道中。

在开发中,我的表单可以正确上传图像。

在控制台中,我看到了 ImageMagick 命令的日志:

Command :: identify -format %wx%h '/tmp/Screen Shot 2013-05-20 at 1.07.24 AM20130526-23150-hy913i.png[0]'
Command :: identify -format %m '/tmp/Screen Shot 2013-05-20 at 1.07.24 AM20130526-23150-hy913i.png[0]'
Command :: identify -format %m '/tmp/Screen Shot 2013-05-20 at 1.07.24 AM20130526-23150-hy913i.png[0]'
Command :: convert '/tmp/Screen Shot 2013-05-20 at 1.07.24 AM20130526-23150-hy913i.png[0]' -auto-orient -resize "10
.... more lines like these

在生产中我有:

Paperclip.options[:command_path] = "/usr/bin/"

which convert输出/usr/bin/convert

更新

我正在使用 EC2。

4

0 回答 0