Why do I get Paperclip :: CommandNotFoundError when deploying and not on my local?

[paperclip] identify '-format' '%wx%h' '/tmp/stream,3360,1.jpeg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>
[paperclip] identify '-format' '%wx%h' '/tmp/stream,3360,1.jpeg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>

This is a mistake in my tail magazine. Image Paperclip :: CommandNotFoundError is what it kicks in a flash error. this only happens with my deployment, not with my developer. who had this problem before?

+5
source share
2 answers

Paperclip uses Imagemagik to manipulate images. The error says that he cannot find indentify, which is the imagemagik command. Make sure that your path to ImageMagik is set correctly in all environments (production, production, etc.):

Paperclip.options[:command_path] = '/path' 
+6
source

, identify . ? , ? /opt/local/bin, type identify. .

Paperclip.options[:command_path] = "PATH_TO_BINARY"
+1

All Articles