New Rails deployment half working...not sure why?

Posted by Meltemi on Stack Overflow See other posts from Stack Overflow or by Meltemi
Published on 2010-06-18T05:23:44Z Indexed on 2010/06/18 5:33 UTC
Read the original article Hit count: 268

I'm in the final stages of going round trip through the entire Rails cycle: development -> test -> production (on an external server). I'm very close...but seeing some errors with the production version and don't know enough about Rails' "magic" to troubleshoot it yet...

all seems well and I can load my app by going to www.mydomain.com/rails and it seems to work...I can interact with my app and create new objects in my database. However, when I go to www.mydomain.com/rails/ (difference is the trailing slash) i get a webpage that just says "Index from public" on it?!? I don't know where that's coming from? index.html is long removed from public.

this may or may not be related to why I can't access, say, the first record in one of my classes by calling its controller like so: www.mydomain.com/rails/mycontroller/1 . and yes, there are records in the database.

anyway, something's askew. it works fine on development box. but, only half working on production server. anyone know what might be causing this?

  • this app is running on the server box (not development)
  • Installed Passenger on server to serve app via Apache
  • modified my httpd.conf with Passenger's stuff (headache but finally got it to respond)
  • loaded schema into the production database: rake db:schema:load RAILS_ENV=production

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about apache