11155
(-- --)
1
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.
hassan
(Hassan Schroeder)
2
Chances are the *web server* is running under a user id other than
yours, and so has a different $PATH.
HTH,
11155
(-- --)
3
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:
11155
(-- --)
4
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.
11155
(-- --)
5
Simply adding Paperclip.options[:command_path] fixed the issue, but I
swear I tried it yesterday!