Trying to get a test app going

ffeingol

Well-Known Member
#1
Hello all,

We're trying to play with our first RoR app on a cPanel server. Sorry, the doc's are not clear so I have a bunch of questions. We're setup for RoR shared hosting enviroment:

A) Does the .ls_rails_config go in the users home directory or under public_html?

B) Where do you actually put the rails app, under the users home dir or public_html?

I seem to remember (form somewhere) that you have to remove the public_html and then simlink public_html to the application.

TIA,

Frank
 

mistwang

LiteSpeed Staff
#2
.ls_rails_config should to in the users home directory.

You can put the application anywhere under user's home directory. so, if you want to put it under public_html, just use configuration like
Code:
RailsApp myApp1 "/public_html/myapp1" "development" 4 1
RailsAppMap myApp1 "mydomain.com" "/"
Even when you do not put the application under public_html, there is no need to create symbolic link, litespeed will add a "Alias" from "myapp1/public/" to the URL specified.
 

ffeingol

Well-Known Member
#3
ok, we got that working (just some wrong paths in the .ls_rails_cnfig). Now the site owner is saying this:

"main "/" isnt spawning the ruby process and displaying a blank page rather then calling the default route".

Any help on that one?
 

mistwang

LiteSpeed Staff
#4
If that server is not too busy, you can try turning on LSWS debug logging. make sure that "Ruby path" pointing to correct ruby installation.
 
#5
Just to clarify, we got it working last night.

The only thing that wasn't working was the domain.com/ - but that seems to be an .htaccess issue. ( I posted what I added below to get it working)

Can you confirm what the .htaccess should be in the rails app's public directory?


Code:
RewriteEngine On

RewriteRule ^$ index.html [QSA]
Also it seems some processes seem to be lightening fast, then the next time I hit refresh it takes up to 20 seconds to render. (same page)

Thanks
- John
 
Top