Hi guys!
So after a couple of months of development today I am finaly deploying!
(WOOHOO great day).
But i am stuck with a problem I can’t seem to fix:
First of all in development all is working perfectly.
In deployment on my server it isn’t though!. I use attachment_fu and i
am able to upload
pictures but the pictures are not resizing.
There is nothing in the production log or in de apache error log.
I am using ImageMagick with Mini_magick, Passenger and Attachement_fu.
So I can upload (no problem) but for some reason the images don’t
resize! like i told attachement fu to do.
Also i read and Google my ass and found some thing about Apache export
you need to add or something. But so far i don’t know what to do at this
point!
Thanxs in advance for any advise!
of course i meant:
“I googled my ass of” not that i am googling my ass of course 
hey Peter,
Thanxs for the reply! (Much appreciated! ) !..
so I google a command (i used convert) and first with root i did:
- convert nl.png nl.gif (just choose a picture on my server)
this worked
then i did it with my git user (who is owner of all the files and
directories):
and this work also great, no problem at all.
I know passenger has the right permissions because i deploy with
capistrano and I set in my deploy file:
run “chown -R git /mnt/app” (where the my app with all it’s releases is
located)
also ls -la confirms that git is the user in all directories.
But i don’t understand what you are saying here…
“- ImageMagick command line utils being in the unix PATH (“which
convert” on Linux/MacOS X should give you a valid path)”
On 04 Jul 2010, at 11:31, jeljer te Wies wrote:
run “chown -R git /mnt/app” (where the my app with all it’s releases
is
located)
also ls -la confirms that git is the user in all directories.
But i don’t understand what you are saying here…
“- ImageMagick command line utils being in the unix PATH (“which
convert” on Linux/MacOS X should give you a valid path)”
Apparently that’s ok too, since you wouldn’t be able to do “convert
blahblahblah” unless convert is actually in the unix path. Out of
ideas at the moment, if something springs to mind, I’ll let you know.
Best regards
Peter De Berdt
On 04 Jul 2010, at 10:45, jeljer te Wies wrote:
There is nothing in the production log or in de apache error log.
I am using ImageMagick with Mini_magick, Passenger and Attachement_fu.
So I can upload (no problem) but for some reason the images don’t
resize! like i told attachement fu to do.
Also i read and Google my ass and found some thing about Apache export
you need to add or something. But so far i don’t know what to do at
this
point!
The symptoms are those of attachment_fu not being able to run the
ImageMagick “convert” command properly.
Check the following on your deployment server:
- ImageMagick working correctly from the command line (google for a
command line example and use it on an image file)
- ImageMagick command line utils being in the unix PATH (“which
convert” on Linux/MacOS X should give you a valid path)
- Appropriate permissions on the folders where attachment_fu does its
thing
Best regards
Peter De Berdt