LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Rails_env

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2006, 12:51 AM
rsilva rsilva is offline
New Member
 
Join Date: Jan 2006
Posts: 9
Default Rails_env

Hi guys,

Curious how you are setting the RAILS_ENV variable for rails when using the Rails support in LS2.2. I have code which checks ENV['RAILS_ENV'] that fails because it isn't set in the global environment. Testing shows that RAILS_ENV is set properly though. Why not use the ENV['RAILS_ENV']?

Bob Silva
Reply With Quote
  #2  
Old 11-06-2006, 07:37 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Hi Bob,

Upgrade to the latest ruby-lsapi release should fix this. In earlier release, ENV['RAILS_ENV'] has been unset after initialization, not any more.

Please make sure do not mix manual and gem installation together, stick to one installation method only. I think the manual installation should have higher priority and override the gem installation.
Reply With Quote
  #3  
Old 11-06-2006, 10:37 AM
rsilva rsilva is offline
New Member
 
Join Date: Jan 2006
Posts: 9
Good call, I still had a self compiled 1.7 being loaded. Thanks for the great support as usual.

Bob
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:50 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.