Paperclip not finding imagemagick on prod, works on dev

Hi,

I am using paperclip to attach documents to my models. it works perfectly on my dev machine, but on the server I get a CommandNotFoundError.

On my server if I ./script/console I can run imagemagick through system("convert") and it works, so why can't paperclip find it?

Thanks for your ideas

PS: the paperclip google group isn't getting much answers so I am posting here.

Chances are the *web server* is running under a user id other than yours, and so has a different $PATH.

HTH,

Hassan Schroeder wrote:

Chances are the *web server* is running under a user id other than yours, and so has a different $PATH.

Interesting, and I think you are right.

However the problem might be similar to these:

I'll also add this: Equivalent of Apache's SetEnv Variable - NGINX - Ruby-Forum

I'm running Nginx+Passenger, and it seems there are issues with ImageMagick.

Simply adding Paperclip.options[:command_path] fixed the issue, but I swear I tried it yesterday!