Hi you all,
I have an app working correctly in Development mode.
For changing to Production I have:
- Copied database schema and data from myapp_development database to
myapp_production database.
- Executed the script/server with "--environment=production".
And when accesing the app I get this error:
Mysql::Error in BugsController#index
#28000Access denied for user
''root''@''localhost'' (using password: YES)
Why I get this error? In fact, when accesing to http://localhost:3000/,
when click on "About your application''s environment", I get:
Routing Error
no route found to match "/rails/info/properties" with
{:method=>:get}
suggestions? :(
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On 13 Jan 2008, at 13:58, Damaris Fuentes wrote:> > Hi you all, > > I have an app working correctly in Development mode. > > For changing to Production I have: > - Copied database schema and data from myapp_development database to > myapp_production database. > - Executed the script/server with "--environment=production". > > And when accesing the app I get this error: > > Mysql::Error in BugsController#index > #28000Access denied for user ''root''@''localhost'' (using password: YES) > > Why I get this error?Because your production server has a different password for the root mysql user? (Perhaps you''re not even supposed to be using the root user, I certainly wouldn''t). Fred> In fact, when accesing to http://localhost:3000/, > when click on "About your application''s environment", I get: > > Routing Error > no route found to match "/rails/info/properties" with {:method=>:get} > > suggestions? :( > -- > Posted via http://www.ruby-forum.com/. > > --~--~---------~--~----~------------~-------~--~----~ > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > For more options, visit this group at http://groups.google.com/g--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
No... it''s the same server, with the tree database there (test, development, production)... The database.yaml is also correct. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I feel idiot. Yeah, I mistyped the pwd for the production database :( However, when accesing to http://localhost:3000/, when click on "About your application''s environment", I get: "The page you were looking for doesn''t exist. You may have mistyped the address or the page may have moved." I don''t care, cause I''m gonna make my own index page, but I wonder what the problem is. Damaris Fuentes wrote:> No... it''s the same server, with the tree database there (test, > development, production)... The database.yaml is also correct.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 14, 2008, at 12:36 PM, Damaris Fuentes wrote:> I feel idiot. Yeah, I mistyped the pwd for the production database :( > However, when accesing to http://localhost:3000/, > when click on "About your application''s environment", I get: > > "The page you were looking for doesn''t exist. > You may have mistyped the address or the page may have moved." > > I don''t care, cause I''m gonna make my own index page, but I wonder > what > the problem is.It may be related to this: http://dev.rubyonrails.org/ticket/8349 That patch is a bit old, I have not checked whether it still can be applied cleanly. -- fxn --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Um, ok, thanks :) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---