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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Rails 2.2 cache_classes problem.

Reply
 
Thread Tools Display Modes
  #11  
Old 12-04-2008, 03:57 PM
Grzegorz Derebecki Grzegorz Derebecki is offline
Senior Member
 
Join Date: Jun 2007
Posts: 92
just change dispatcher and all will be ok.

BTW: in development it works becous cache_classes is false :P
Reply With Quote
  #12  
Old 12-04-2008, 04:22 PM
senihele senihele is offline
New Member
 
Join Date: Aug 2008
Posts: 4
Yeah - I saw that, that's why I changed to development mode. Thanks for the tip, I would have been lost without it. I'm not sure how to switch dispatchers? Is there any downside to switching?
Reply With Quote
  #13  
Old 12-04-2008, 05:46 PM
Grzegorz Derebecki Grzegorz Derebecki is offline
Senior Member
 
Join Date: Jun 2007
Posts: 92
how do you run rails? if you use buildin rails support in lsws just change fcgi-bin/RailsRunner.rb
Reply With Quote
  #14  
Old 12-04-2008, 06:38 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Just try patching the fcgi-bin/RailsRunner.rb with the code posted by Grzegorz . It will be included in our next release.
Reply With Quote
  #15  
Old 12-04-2008, 07:01 PM
senihele senihele is offline
New Member
 
Join Date: Aug 2008
Posts: 4
Perfect - works! Thanks everyone.
Reply With Quote
  #16  
Old 02-04-2009, 09:36 AM
brunoaalves brunoaalves is offline
New Member
 
Join Date: Feb 2009
Posts: 3
I'm trying to use the v3.3.24 but without sucess with rails 2.2.2 . Although I have the rails 2.2.2 gem installed, in ../lsws/logs/stderr.log I keep getting the following error:

"Missing the Rails 2.2.2 gem. Please `gem install -v=2.2.2 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed."

I can run ruby script/console without problems.

I can run the webrick server (using ruby script/server) without any problems.

I've the same code running in another machine with v3.3.23 so I though it could be a bug from the v3.3.24.

any ideas?

Thanks in advance!
Reply With Quote
  #17  
Old 02-04-2009, 10:01 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
maybe there are multiple ruby installations. Make sure the correct one has been used, check configuration under "Ruby" tab.
Reply With Quote
  #18  
Old 02-04-2009, 11:41 AM
brunoaalves brunoaalves is offline
New Member
 
Join Date: Feb 2009
Posts: 3
Hi mistwang,

I have multiple rails instalations

Gem rails installed (via gem list)
rails (2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2, 1.2.3)

And with the command "whereis ruby" it returns:

ruby: /usr/bin/ruby /usr/bin/ruby1.8 /usr/lib/ruby /usr/lib64/ruby

Which configuration of the ruby did you mean? The "Ruby Path" in the Ruby Rails tab?

it is set to /usr/bin/ruby

I've tried with /usr/bin/ruby1.8 but without success...

Last edited by brunoaalves; 02-04-2009 at 12:09 PM..
Reply With Quote
  #19  
Old 02-06-2009, 10:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
I am not sure what is wrong.
Maybe a permission problem? RailsRunner.rb will not be started by root.
Also check if Rails require a special environment variable.
Reply With Quote
  #20  
Old 02-17-2009, 11:46 AM
brunoaalves brunoaalves is offline
New Member
 
Join Date: Feb 2009
Posts: 3
Hi Mistwang,

The solution I found was freeze the rails gem (rake rails:freeze:gems), so litespeed uses the Rails gem included in the project.

Thanks for the help!
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 05:23 AM.



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