Welcome Guest | Login

Rails application failed to start properly

I have tried to deploy a rails-app using Capistrano in a subfolder of public_html, i.e. public_html/login_system. But when I try to connect I get "Rails application failed to start properly."
I have tried looking in the forums, and I have fixed a few errors, but something is still wrong.

2007-09-09 09:24 AM

Give this article a good read.  When you ssh to RAILS_ROOT/public and enter ./dispatch.fcgi - what do you see?  

2007-09-09 09:27 AM

./dispatch.fcgi writes nothing. But I think ./dispatch.cgi might be more relevant, since I am only running CGI at the moment.
./dispatch.cgi writes "Status: 400 Bad Request".

2007-09-09 09:41 AM

You should switch to fcgi - running rails on cgi on a shared production server is a bad idea, as each request takes a fair amount of CPU.  (and I hope you're not in development mode, which is even worse)

Did you go through every point of that article?  Do you have the correct RewriteBase (.htaccess) and relative_url_root (environment.rb) in your app?    

2007-09-09 09:45 AM

I went through every step. I guess I must have done something wrong, but I just can't figure out what.

2007-09-09 10:15 AM

Hello,

I checked it and found some incorrect permissions on few files and folder. I have corrected it. Now you are getting the error

ActionController::RoutingError (no route found to match "/" with {:method=>:get}):

in your production logs. Please check your routes.rb file and do required modification. Thank you

2007-09-09 11:43 AM

HostingRails Support
Hi

I've got the app working now when I manually set everything up.
Everything works with my Capistrano script too - except for the permissions.
When I run "chmod -R 755 ." in the rails folder the app starts to work again.
I have been trying to find out which files actually need to be changed, but with no luck.
Could you please tell me what permissions you corrected?

2007-09-10 03:03 PM

Check out this thread for the proper permissions.
http://www.hostingrails.com/forums/wiki_thread/7

Cheers,
~William

2007-09-11 04:01 AM

It works now. Thanks a bundle.

2007-09-11 04:21 AM


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