使用蜻蜓 gem 指定命令路径
当我尝试使用蜻蜓上传图像时,我不断收到错误消息。我知道问题是什么,因为我在使用回形针时解决了它。但我不知道如何为蜻蜓解决这个问题。
问题是蜻蜓正在执行命令“identify”,它正在“/usr/local”上寻找二进制文件,但它在 Paperclip 的“/opt/local”上,我可以轻松解决这个问题。
Paperclip.options[:command_path] = "/opt/local/bin/"
有人知道蜻蜓的等效命令吗?顺便说一句,我正在使用 Rails 3。
I keep getting an error when i try to upload an Image with dragonfly. I know what the problem is because I solved it when I was using paperclip. But I don't know how to solve it for dragonfly.
The problem is that dragonfly is executing the command "identify" and it's looking for the binary on "/usr/local" but instead it's on "/opt/local" in Paperclip, I would easily solve this with.
Paperclip.options[:command_path] = "/opt/local/bin/"
Anyone knows the equivalent command for dragonfly? I'm using rails 3 btw.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了它,但进入文件:image_magick_utils.rb 并将:更改
为:
I solved it, but going into the file: image_magick_utils.rb and changing:
to: