I've recently deployed a Rails 3.2 app, using Capistrano, to a new nginx instance up on web108, following most of the instructions here: http://docs.webfaction.com/software/rails.html#deploying-a-ruby-on-rails-application-with-capistrano I've also removed the helloworld starter app and updated the nginx.conf to look like this:
The app deploys no problem, and looking at the logs, error free. I've setup a website through the control panel that uses one of my subdomains and the site app containing my deployed RoR app (dir: user/webapps/site_app/deployedrailsapp), URL path is '/'. However, the set up website is displaying a 404. I originally had root :to=> "pages#home" setup in routes.rb, but commented it out in order to route to the default index.html root file in the public folder, but am still getting the same error. The root of my subdomain displayed the Rails welcome page for the starter helloworld app; should that same location now display index.html for my deployed app? Has anyone run into this before? Let me know if you want to see my deploy.rb. asked 10 Apr '12, 23:38 chrisklein |
I just had a look at your actual Try changing that to your actual user name and app name, restart your Nginx, and you should be good to go (barring any other errors). answered 11 Apr '12, 15:03 seanf Yep, that was it. I don't know how I missed it. Thanks!
(11 Apr '12, 20:55)
chrisklein
|
Are you sure that:
/home/username/webapps/railsapp/current/public;
exists?
Also, have you looked at your logs at: /home/webfaction_user/logs/user/error_site_application.log
and seen the error in detail?
Yeah, just double-checked. That directory definitely exists. I also checked the error_site_application.log and no errors.
Hi,
Can you make sure that "passenger_root" and "passenger_root" exist as well?
Yeah,
The passernger-3.0.11 gem is there.
bin/ruby is pointing at /usr/local/bin/ruby1.9