How to specify nginx & unicorn to run my application in "production"

September 28, 2013 2.3k views
I'm trying to run my first rails app and I constantly get this message: "Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue." any idea?
3 Answers
Try running rake db:migrate RAILS_ENV=development as the message says.
well I think i's not the point. I want to use the production database, not the dev one.
Ok found it. Unicorn run rails in dev by default. Read the chapter "Modifying Rails Environment" on page
Have another answer? Share your knowledge.