‘rake db:migrate’ on Production Server

   By chris on May 3rd 2007 in /dev/rails | 5,404 views

When the time comes to deploy on a production server, the following sets up the database:

rake db:migrate RAILS_ENV=production

3 Responses to “‘rake db:migrate’ on Production Server”

  1. Ling responded on 12 Jun 2008 at 2:56 am #

    Doesn’t work for me (Win XP, Rails 2.0.2). Used this instead:

    rake db:migrate RAILS_ENV=”production”

  2. Shekhar responded on 14 Aug 2008 at 10:25 am #

    Hi,

    I tried to run rake db:migrate RAILS_ENV=”production” and it said that rake is not recognized as an internal or external command, operable program or batch file. How do I setup rail2.0.2? please help!!

    Thanks

  3. chris responded on 14 Aug 2008 at 10:58 am #

    Sounds like you need to install rake. Give this a try:

    gem install –remote rake

    If that doesn’t work for you, see here: http://rake.rubyforge.org/files/README.html

Trackback URI | Comments RSS

Leave a Reply