Welcome Guest | Login

capistrano + mongrels_cluster = kaput

Everytime I do a capistrano update/upload, my site doesn't work.
After the capistrano succeeds in the update/upload,
I kill mongrel, re-init the cluster, and start again. I save my online config files that
are known to work, and overwrite the uploaded config files with the saved online versions.

And what happens is fastcgi keeps appearing, and my app does not appear to be using the mongrel_cluster at all. And it can't find the images: I get routes errors for images
in myapp/public.
ActionController::RoutingError (no route found to match "/images/home_r4c3.gif" with {:method=>:get}):

Also the javascript is inaccessible.

Has anyone seen this??
This is getting to be a hassle.
thanks!!!!

2007-07-24 12:35 AM

Hello,

In your case the .htaccess file was creating the issue with the images for some reason. I just moved the .htaccess file to .htaccess.bkp. and the images started to appear. Also I didn't restart mongrel. This indicates that the application runs in mongrel , but the images work in apache mode. So the .htaccess rewrite rules was affecting the images. Do check and confirm working from your end now.

2007-07-24 01:51 AM

Regards,
Rahul
This worked, thanks!

2007-07-24 01:37 PM

I've had problems with spiders indexing my site with an empty .htaccess so I went back to
a non-empty .htaccess and this time it works because the
 RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
is the last rewrite rule in the file.
Perhaps a note about this should be added to the thread on getting mongrel working.

2007-07-29 02:12 PM

Luciddream - Could you please explain what you found a bit more, so that it will be useful for other users as well?  

2007-07-29 02:51 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.