I have tried looking in the forums, and I have fixed a few errors, but something is still wrong.
Rails application failed to start properly
- Suitit
- Posts: 4
- Starts: 2
- Wiki Edits: 0
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.
I have tried looking in the forums, and I have fixed a few errors, but something is still wrong.
- William
- Posts: 1052
- Starts: 32
- Wiki Edits: 56
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
- Suitit
- Posts: 4
- Starts: 2
- Wiki Edits: 0
./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".
./dispatch.cgi writes "Status: 400 Bad Request".
2007-09-09 09:41 AM
- William
- Posts: 1052
- Starts: 32
- Wiki Edits: 56
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?
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
- Suitit
- Posts: 4
- Starts: 2
- Wiki Edits: 0
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
- Kumar
- Posts: 447
- Starts: 0
- Wiki Edits: 5
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
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- Suitit
- Posts: 4
- Starts: 2
- Wiki Edits: 0
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?
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
- William
- Posts: 1052
- Starts: 32
- Wiki Edits: 56
Check out this thread for the proper permissions.
http://www.hostingrails.com/forums/wiki_thread/7
Cheers,
~William
http://www.hostingrails.com/forums/wiki_thread/7
Cheers,
~William
2007-09-11 04:01 AM
- Suitit
- Posts: 4
- Starts: 2
- Wiki Edits: 0
It works now. Thanks a bundle.