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.
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