Image Science, Ruby Inline and Your Sanity
Doing an install on a VPS (or elsewhere), getting funky soul-sucking ruby inline permission messages in your Mongrel logs and feeling extraordinarily frustrated, dumb or both?
Google to the rescue!
This post and this post kept me sane. After installing freeimage and image science, create a .ruby_inline directory inside your tmp directory with the same permissions as your running mongrels (or whatever works for your install). You might also have to change the permissions of your tmp directory as well. Then add this line to your environments/production.rb:
#Ruby Inline Permissions Hackery
ENV['INLINEDIR'] = RAILS_ROOT + "/tmp/.ruby_inline"
For futher reference, check out: http://blog.zenspider.com/archives/2007/05/image_science_and_deployment.html





Thanks – I’d been giving Mongrel write permissions on the .ruby_inline directory in my home directory, but this is a far cleaner approach.
Thank you very much !! I more or less understood what was going on but finding an actual solution would have cost me time. This is the sound of my heart rate slowing down
[...] you, thank you Mandarin Soda ! Posted by elisehuard Filed in rails Tags: imagescience, inline, [...]
the url is wrong
correct one:
http://blog.zenspider.com/2007/05/image-science-and-deployment.html