‘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
When the time comes to deploy on a production server, the following sets up the database:
rake db:migrate RAILS_ENV=production
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”
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
chris responded on 14 Aug 2008 at 10:58 am #
Sounds like you need to install rake. Give this a try:
If that doesn’t work for you, see here: http://rake.rubyforge.org/files/README.html