Question

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

  • Posted September 28, 2013

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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Ok found it. Unicorn run rails in dev by default. Read the chapter “Modifying Rails Environment” on page <br> <br>https://www.digitalocean.com/community/articles/how-to-1-click-install-ruby-on-rails-on-ubuntu-12-10-with-digitalocean

well I think i’s not the point. I want to use the production database, not the dev one. <br>

Try running <code>rake db:migrate RAILS_ENV=development</code> as the message says.