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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Using Ruby on Rails with LSWS Enterprise 4.0.11?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2009, 04:22 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Default Using Ruby on Rails with LSWS Enterprise 4.0.11?

I'm trying to get this set up for a client but I keep hitting dead ends. If anybody out there using RoR in a shared environment for a client would like to lend a hand/give some advice I would greatly appreciate it
Reply With Quote
  #2  
Old 10-11-2009, 04:54 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If you use cPanel mongrel setup, it should work out of box.
Or, you can try our Rails shared hosting configuration
http://www.litespeedtech.com/support...:rails_hosting
Reply With Quote
  #3  
Old 10-12-2009, 03:19 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by mistwang View Post
If you use cPanel mongrel setup, it should work out of box.
Or, you can try our Rails shared hosting configuration
http://www.litespeedtech.com/support...:rails_hosting
This is working nice as long as you don't use a symlink to point to your application.

If you set the app path as /public_html/theapp - and the files are actually in that folder it works. If you set the path as /public_html/theapp/current and that is a symlink to somewhere else (such as /public_html/theapp/1251231231/) it will fail with a 503 error.

Does LSWS not follow SymLinks when following the directives in a .ls_rails_config file?

Quote:
2009-10-12 18:08:29.287 [INFO] [98.253.17.52:57914-0#APVH_beta.thecliplady.com] File not found [/home/theclipl/public_html/beta/releases/20091012214446/public/503.shtml]
2009-10-12 18:08:29.286 [INFO] [HTAccess] Updating configuration from [/home/theclipl/public_html/beta/releases/20091012214446/public/.htaccess]
I have managed to get it working I think with a relative symlink but the thing is that if that symlink changes LSWS doesn't pick up on it unless you restart LSWS - or that's how it seems.

Last edited by MikeDVB; 10-12-2009 at 03:28 PM..
Reply With Quote
  #4  
Old 10-12-2009, 04:10 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Here is the .ls_rails_config:
Code:
RailsApp tcl_beta_site "/public_html/beta" "Production" 2 1

RailsAppMap tcl_beta_site "test2.thecliplady.com" "/"
Here is the error:
Code:
2009-10-12 19:05:55.060 [INFO] [HTAccess] Updating configuration from [/home/theclipl/public_html/beta/public/.htaccess]
2009-10-12 19:05:55.060 [ERROR] [config] Path for Rails application is invalid: /home/theclipl/etc/rails_apps/test/
For some reason it's still trying to access /etc/rails_apps/test/ instead of the file specified. I thought that maybe updating the path that was set in the cPanel for that subdomain to the correct path would do it but it seems that LSWS is not over-riding the httpd.conf settings for this rails app:

Code:
2009-10-12 19:08:50.586 [INFO] [xx.xx.xx.xx:58404-1#APVH_test2.thecliplady.com] Auto Index is disabled for [/home/theclipl/public_html/beta/public/], access denied
2009-10-12 19:08:50.068 [INFO] [xx.xx.xx.xx:58404-0#APVH_test2.thecliplady.com] Auto Index is disabled for [/home/theclipl/public_html/beta/public/], access denied
2009-10-12 19:08:44.546 [INFO] [xx.xx.xx.xx:33038-0#APVH_test2.thecliplady.com] Auto Index is disabled for [/home/theclipl/public_html/beta/public/], access denied
Reply With Quote
  #5  
Old 10-12-2009, 08:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Can it be fixed by restarting LSWS?
LSWS resolve symbolic link when read configuration, but does not update the link if changed. Will have it addressed in 4.1 release branch.
Reply With Quote
  #6  
Old 10-13-2009, 10:48 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
Quote:
Originally Posted by mistwang View Post
Can it be fixed by restarting LSWS?
LSWS resolve symbolic link when read configuration, but does not update the link if changed. Will have it addressed in 4.1 release branch.
Yeah, but we were having some other funny issues - I'm more than happy to set you up with an account so you can do some testing if you want or to get you in touch with the guy who was doing the Ruby things if you wish.
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 08:06 PM.



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