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 ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
hi cat config/database.yml please Ivan Nastyukhin dieinzige-BUHhN+a2lJ4@public.gmane.org On Jun 10, 2010, at 12:15 PM, Xiaohua Dai 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? > > Any one have met this problem ? > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 June 2010 09:15, Xiaohua Dai <iandaicsu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.