Max Williams
2007-Oct-04 12:06 UTC
Can''t get Eclipse to start Rails in production mode...
I''m using Eclipse to run a rails server for local development. I changed my environment.rb to have ENV[''RAILS_ENV''] ||= ''production'' as this is what i did with my live deployed version to get it to run in prod mode. But, when i restart the server in eclipse, it''s still in dev mode. The ''file'' setting in my eclipse ''run'' dialog is "script\server". Do i need to run something else to get it into dev mode? I also just tested with mongrel: if i do mongrel_rails start -e production then it seems to still run in dev mode as well. Can anyone explain what i''m doing wrong? thanks max -- 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 -~----------~----~----~----~------~----~------~--~---
Tarscher
2007-Oct-04 13:39 UTC
Re: Can''t get Eclipse to start Rails in production mode...
I think you should ask this question in the aptana forum: http://www.aptana.com/forums/ That is if you are using RadRails. regards, Stijn On 4 okt, 14:06, Max Williams <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m using Eclipse to run a rails server for local development. I > changed my environment.rb to have > > ENV[''RAILS_ENV''] ||= ''production'' > > as this is what i did with my live deployed version to get it to run in > prod mode. But, when i restart the server in eclipse, it''s still in dev > mode. > > The ''file'' setting in my eclipse ''run'' dialog is "script\server". Do i > need to run something else to get it into dev mode? > > I also just tested with mongrel: if i do > > mongrel_rails start -e production > > then it seems to still run in dev mode as well. > > Can anyone explain what i''m doing wrong? > > thanks > max > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Max Williams
2007-Oct-04 13:41 UTC
Re: Can''t get Eclipse to start Rails in production mode...
Tarscher wrote:> I think you should ask this question in the aptana forum: > http://www.aptana.com/forums/ > > That is if you are using RadRails. > > regards, > Stijn > > On 4 okt, 14:06, Max Williams <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>i am and i will :) 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 -~----------~----~----~----~------~----~------~--~---