Paperclip plugin + Phusion Passenger + path problem

Tagged paperclip, apache, phusion, passenger  Languages ruby

In config/initializers/paperclip.rb put:

if RAILS_ENV == "development"
  Paperclip.options[:command_path] = '/opt/local/bin/'
else
  Paperclip.options[:command_path] = '/usr/bin/'
end

Note image_magick_path is deprecated alias of command_path.