You need to explicitly specify the production runtime in the rake install task:
rake install RAILS_ENV=production Without the RAILS_ENV setting, it'll default to the development environment/database. Our installation instructions are geared more for installing Insoshi in a local development environment so they don't mention that setting. For future Insoshi updates that include a migration, you'll also need to specify the runtime: rake db:migrate RAILS_ENV=production Hopefully this gets you up and running. Let me know if you run into any other issues on Dreamhost. Long On Tue, Jul 15, 2008 at 3:33 AM, eric <[EMAIL PROTECTED]> wrote: > > I'm getting a 500 error in production mode. > > I know rails is working cause I get an Insoshi error page (500) > > uploaded Tar to Dreamhost > unzip tar -xvf [filepath.tar] > > create databases on dreamhost > > create and update database.yml > > rake install > rake db:test:prepare > rake spec > > uncomment > ENV['RAILS_ENV'] ||= 'production' > in environment.rb > > visit the page and get the 500 error page > > > the production log gave me this: > ActiveRecord::StatementInvalid (Mysql::Error: Table > '2ubertpro.page_views' doesn't exist: SHOW FIELDS FROM `page_views`): > > so I checked out the database and it wasn't set up > the dev db has 15 tables > the test db has 15 tables > the pro db has 0 tables > > > > > On Jul 14, 1:44 pm, "Long Nguyen" <[EMAIL PROTECTED]> wrote: > > What issues are you running into? > > > > Also, if you haven't found it already, take a look at > > > > http://rails.dreamhosters.com > > > > It looks like a pretty comprehensive resource list/guide for setting up > and > > running Rails apps on Dreamhost. > > > > Long > > > > On Sun, Jul 13, 2008 at 4:31 AM, eric <[EMAIL PROTECTED]> wrote: > > > > > Has anyone been able to get Insoshi running on Dreamhost? If so, I'd > > > love some help. > > > > -- > > Long Nguyen > > [EMAIL PROTECTED] > > > -- Long Nguyen [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ Insoshi developer site: http://dogfood.insoshi.com/ Insoshi documentation: http://docs.insoshi.com/ You received this message because you are subscribed to the Google Groups "Insoshi" 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/insoshi?hl=en -~----------~----~----~----~------~----~------~--~---
