I'd try setting RAILS_ENV=production in a (global) environment variable outside your app. YMMV but that seems the more flexible/ standard approach, as it lets you run the same source in either mode depending on the environment in which it is deployed.
I'd also be careful to ensure you have a clean production database. rake db:drop rake db:schema:load If those steps don't work, you may be in a situation like I was a couple weeks back, which involved really odd behavior only solved once I found a couple mixed-up pluralizations in the associations in my models. Rails and Hobo are quite brittle around this point -- no error messages generated as the framework tries to figure out what you meant, then stuff breaks in unexpected places with errors that make no f--ing sense. On Jun 15, 12:15 pm, hobo_hippy <[email protected]> wrote: > I should also mention I now switched back to development mode, using > the development database I created similarly to the production > database, and everything works fine. Why won't production mode play > nice? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
