问题
The rails 3.2 app needs RMagick gem.
From the support ticket, they say its in private PaaS.
But what for apps hosted on cloudfoundry.com itself, not in private PaaS?
回答1:
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/"
回答2:
As Glenn has already said in his comment, RMagick has a dependency on the native library ImageMagick and the Cloud Foundry engineering team are currently working on integrating this in to the live environment.
回答3:
The docs say it's not supported on cloudfoundry.com: http://docs.cloudfoundry.com/frameworks/ruby/ruby-cf.html
来源:https://stackoverflow.com/questions/11098643/rmagick-gem-in-cloudfoundry