wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
2007-Jun-14 02:23 UTC
how do I set my database to production ?
I know how to set the paswords and database names in database.yml, but I haven''t found in my book where do I set rails to use the production database ? What will be different once I do that ? Is prod more secure and there is less logging ? It allways uses the dev database at the moment. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
When you start your server use a -e production i.e. ruby script/server -e production Cam On Jun 14, 12:23 pm, "wbsurf...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org" <wbsurf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I know how to set the paswords and database names in database.yml, > but I haven''t found in my book > where do I set rails to use the production database ? What will be > different once I do that ? > Is prod more secure and there is less logging ? It allways uses the > dev database at the moment.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
2007-Jun-14 09:13 UTC
Re: how do I set my database to production ?
I have a site hostingrails.com, I never start the server there. I''m not sure how I would do it and I don''t recall seeing it in their docs. I figured I must have read something on this and forgotten it, but the method you mention I don''t ever recall reading and I have a whole bunch of books ... On Jun 13, 11:28 pm, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When you start your server use a -e production i.e. > > ruby script/server -e production > > Cam > > On Jun 14, 12:23 pm, "wbsurf...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org" <wbsurf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > I know how to set the paswords and database names in database.yml, > > but I haven''t found in my book > > where do I set rails to use the production database ? What will be > > different once I do that ? > > Is prod more secure and there is less logging ? It allways uses the > > dev database at the moment.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, you''ll need to do the following: 1) uncomment the following in <path_to_rails_app>/config/environment.rb ENV[''RAILS_ENV''] ||= ''production'' 2) set the required fields in your <path_to_rails_app>/config/database.yml Good luck, -Conrad On 6/14/07, wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org <wbsurfver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I have a site hostingrails.com, I never start the server there. I''m > not sure how I would do it and I don''t recall seeing it in their docs. > I figured I must have read something on this and forgotten it, but the > method you mention I don''t ever recall reading and I have a whole > bunch of books ... > > > On Jun 13, 11:28 pm, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > When you start your server use a -e production i.e. > > > > ruby script/server -e production > > > > Cam > > > > On Jun 14, 12:23 pm, "wbsurf...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org" <wbsurf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > > I know how to set the paswords and database names in database.yml, > > > but I haven''t found in my book > > > where do I set rails to use the production database ? What will be > > > different once I do that ? > > > Is prod more secure and there is less logging ? It allways uses the > > > dev database at the moment. > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---