RMagick gem in Cloudfoundry?

一个人想着一个人 提交于 2019-12-12 00:25:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!