问题描述
rails 3.2应用需要RMagick gem。
The rails 3.2 app needs RMagick gem.
从支持票证中说,它是在私人PaaS中使用的。
From the support ticket, they say its in private PaaS.
但是,托管在cloudfoundry.com本身而不是私有PaaS中的应用又会怎样呢?
But what for apps hosted on cloudfoundry.com itself, not in private PaaS?
推荐答案
CloudFoundry.com最近添加了ImageMagick二进制文件,这对于RMagick等库来说是必需的。路径为 / var / vcap / packages / imagemagick / bin /
。例如,要配置回形针gem,请将以下内容添加到 config / environments / production.rb
:
CloudFoundry.com recently added the ImageMagick binaries, which are necessary for libraries such as RMagick to work. The path is /var/vcap/packages/imagemagick/bin/
. For example, to configure the paperclip gem add the following to config/environments/production.rb
:
Paperclip.options[:command_path] = "/var/vcap/packages/imagemagick/bin/"
这篇关于CloudFoundry中的RMagick宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!