I am trying to replicate an error in my app in production, but when I launch thin like this:
thin -e production start
When I go to my main page I get this:
ActiveRecord::StatementInvalid in Devise::SessionsController#new
Could not find table 'users'
Which is strange because once I do:
thin start
That page now works.
Do I have to run a new set of migrations now that I am in production mode ? Or is it that in production mode it doesn’t like SQLite ?
Thanks.
Assuming config/database.yml is setup correctly, and that you have not setup your production database, you will need to:
to setup your production database. This method looks at the schema file instead of applying all your migrations which is the preferred method.
I hope this helps.