RefineryCMS / Dragonfly image from url gotcha
I got a curious bug ticket recently involving an install of RefineryCMS that used Dragonfly’s ability to add an image from url.
The feature was working fine except when the client attempted to add one of their own image urls, at which point they received an error page.
After some debugging I discovered that the default Webfaction install of Rails/Passenger/Nginx specifies a max of one process, which meant that Rails was hanging when in attempted to access a resources that was currently in queue due to only one concurrent process being available at a time. Bumping the Passenger conf at /home/[user]/webapps/[app]/nginx/conf/nginx.conf to 2 available processes solved the problem….
I am available for Ruby on Rails consulting work – get in touch to learn more.