ghugon
By:
ghugon

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

September 28, 2013 2.6k 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

https://www.digitalocean.com/community/articles/how-to-1-click-install-ruby-on-rails-on-ubuntu-12-10-with-digitalocean
Have another answer? Share your knowledge.