Raymond Law
Badminton on Rails
-
Using Paperclip with Passenger
Posted on March 4th, 2010 No commentsThis is mainly a note to myself. File upload with Paperclip works with script/server but not when running Passenger. I have been lazy in finding a solution, so I just switch between script/server and Passenger, but I finally can’t stand it.
It happens because /opt/local/bin/identify is not in the path for the www user which is used to run Apache on Leopard. The solution is just to make it so in environment.rb (Make sure the path is correct for both the local dev and live prod hosts):
Paperclip.options[:command_path] = "/opt/local/bin"



Recent Comments