Dragonfly Gem with ImageMagick and Passenger
问题 I was having some problems getting the dragonfly gem to play nicely with passenger. Passenger doesn't seem to use the current $PATH so it can't find the convert binary. I've added some configuration to dragonfly which seems to solve the issue: require 'dragonfly/rails/images' Dragonfly[:images].configure do |c| c.convert_command = "/usr/local/bin/convert" # defaults to "convert" c.identify_command = "/usr/local/bin/convert" # defaults to "convert" end but the gem i'm working on is going to be