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

Posted September 28, 2013 4.5k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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
Submit an Answer