icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old July 30th, 2008, 5:01 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2008
10 posts
Gave thanks: 2
Thanked 0 times
Ruby on Rails on shared hosting

I tried to create a new ruby application on my shared hosting plan in cpanel.

I click the ruby on rails icon. Then i create an application and a rewrite but whenever I click "Run" it says the application has started and then I come back to the Ruby page and it says that the application is not started.

I try to browse to the URL of the rewrite and I get:
"Proxy Error The proxy server received an invalid response from an upstream server."

Any Ideas?
hotstyle765 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 30th, 2008, 6:28 PM   #2 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
Unless they're using mod_rails (Overview — Phusion Passenger (a.k.a. mod_rails / mod_rack)), litespeed or a mongrel like system, it's honestly not worth using. If it's baked into CPanel, it's probably a slow as hell CGI interface that will die under a couple users.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks H for this great post!
hotstyle765 (July 30th, 2008)
Old July 30th, 2008, 7:11 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2008
10 posts
Gave thanks: 2
Thanked 0 times
so much for my Ruby escapades.

Thanks for the info.
hotstyle765 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 30th, 2008, 11:01 PM   #4 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
If you're just trying it out or whatever -- it'll be more than fine. But you're best off experimenting on a local system.

I've been told recently that they're working on improving their Rails implementation (I'm hoping mod_ruby for a number of reasons), so depending on that timeline, it could be worth sticking out with the CGI for now. You're really going to best off contact support -- regarding both the problem you had with proxy error and future Rails support.

Note: the reason I suggest going the route of mod_rails is that it's super easy to toss into Apache and you won't have to allocate mongrel ports to thousands of accounts -- nor implement a container system. The only trick after that is gems...
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 31st, 2008, 12:21 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2008
10 posts
Gave thanks: 2
Thanked 0 times
Quote:
Originally Posted by H View Post
Unless they're using mod_rails (Overview — Phusion Passenger (a.k.a. mod_rails / mod_rack)), litespeed or a mongrel like system, it's honestly not worth using. If it's baked into CPanel, it's probably a slow as hell CGI interface that will die under a couple users.

H: have you seen this?

Ruby Notes - Surpass Hosting Wiki

Looks like they are using mod_ruby a.k.a. mod_rails. I hope i dont need a webdev account though
hotstyle765 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 31st, 2008, 4:17 PM   #6 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
I'm almost positive that's not the mod_ruby I'm referring to (which is actually called Phusion Passenger). The mod_ruby I think they mention there is a really basic, outdated one.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On