Hi ,
i run RAILS_ENV=‘production’ rake db:migrate , script/server -e
production, i can successfully run in production environment now.
But when i wanna go back to development mode with rake db:migrate ,
script/server , something goes wrong. It seems, can’t find the
database?
Any one have met this problem ?
hi
cat config/database.yml please
Ivan N.
[email protected]
On 10 June 2010 09:15, Xiaohua D. [email protected] wrote:
Hi ,
i run RAILS_ENV=‘production’ rake db:migrate , script/server -e
production, i can successfully run in production environment now.
But when i wanna go back to development mode with rake db:migrate ,
script/server , something goes wrong. It seems, can’t find the
database?
Are you sure you have not changed something? Having run in production
mode should make no difference.
What is the exact error you get on rake db:migrate?
Also show us config/database.yml please.
Colin