I just installed mod_rails on a brand new Hardy server and for some reason it is defaulting to development mode. I even put RailsEnv in the apache config file. Any ideas on what might be causing this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Okay I disabled mod_rails and noticed that the app is still defaulting to development mode (i did a rake db:create with no password on the development database to throw up and an error if it uses the development database) ... so I guess it''s some rails thing or ruby thing that is going crazy ... any ideas? On May 30, 11:39 am, mel ram <mel...-IA9i2KS8NFBpEKysQ+xqfPpXobYPEAuW@public.gmane.org> wrote:> I just installed mod_rails on a brand new Hardy server and for some > reason it is defaulting to development mode. I even put RailsEnv in > the apache config file. > > Any ideas on what might be causing this?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Did you try setting it in the config/environment.rb? best. mike On May 30, 2008, at 2:39 PM, mel ram wrote:> > I just installed mod_rails on a brand new Hardy server and for some > reason it is defaulting to development mode. I even put RailsEnv in > the apache config file. > > Any ideas on what might be causing this? > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yea i can set it there but it only changes it for the web... when I do db:migration, it tries to use the development database On May 30, 12:10 pm, Michael Breen <hard...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Did you try setting it in the config/environment.rb? > > best. > mike > > On May 30, 2008, at 2:39 PM, mel ram wrote: > > > > > I just installed mod_rails on a brand new Hardy server and for some > > reason it is defaulting to development mode. I even put RailsEnv in > > the apache config file. > > > Any ideas on what might be causing this?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Okay thanks to help from Slicehost.com people, here is the code that i added to my .bashrc file: export RAILS_ENV=production On May 30, 12:13 pm, mel ram <mel...-IA9i2KS8NFBpEKysQ+xqfPpXobYPEAuW@public.gmane.org> wrote:> Yea i can set it there but it only changes it for the web... when I do > db:migration, it tries to use the development database > > On May 30, 12:10 pm, Michael Breen <hard...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Did you try setting it in the config/environment.rb? > > > best. > > mike > > > On May 30, 2008, at 2:39 PM, mel ram wrote: > > > > I just installed mod_rails on a brand new Hardy server and for some > > > reason it is defaulting to development mode. I even put RailsEnv in > > > the apache config file. > > > > Any ideas on what might be causing this?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Right, it has nothing to do with mod_rails since you are doing rake. By default rake assumes development so you don''t end up shooting yourself in the foot. To run with production use: rake db:create RAILS_ENV=production Hth, Long mel ram <melvin-IA9i2KS8NFBpEKysQ+xqfPpXobYPEAuW@public.gmane.org> wrote: Okay I disabled mod_rails and noticed that the app is still defaulting to development mode (i did a rake db:create with no password on the development database to throw up and an error if it uses the development database) ... so I guess it''s some rails thing or ruby thing that is going crazy ... any ideas? On May 30, 11:39 am, mel ram wrote:> I just installed mod_rails on a brand new Hardy server and for some > reason it is defaulting to development mode. I even put RailsEnv in > the apache config file. > > Any ideas on what might be causing this?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---