Jump to content

[Solved] Rails application is running, but not working in browser


Recommended Posts

Posted

Thank you,

 

 

in mongrel log you may see

** Mongrel 1.1.5 available at 0.0.0.0:12222

 

Either 0.0.0.0 is not a good idea for shared hosting or 12222 port is not opened for outside connections

 

 

finally I made it work with

RewriteRule ^(.*)/?$ "http\:\/\/127\.0\.0\.1\:12222%{REQUEST_URI}" [P,QSA,L]

 

in .htaccess

 

but is it really the way how we should run RoR application?

 

Best Regards,

ism

Posted

Note to djbob. I'm seeing two identical accounts for this domain and user.

 

Domain name: ski.heliohost.org

Username: ism

 

Maybe that's where his problem is?

 

Posted

ism: We block all outgoing ports not in use for security purposes. Using the Apache proxy should work fine, though. Is there any reason you need direct access to the Mongrel server?

 

byron: Nah, that's just the database corruption script being weird. I've deleted the extra entry.

Posted
byron: Nah, that's just the database corruption script being weird. I've deleted the extra entry.

 

I thought there might have been a conflict between the two. If I see this happen again is there a way for me to tell which entry to delete as not to delete any of the persons files?

 

Posted

There's really no way from the moderator script - I had to go into the database and manually write a DELETE FROM query.

Posted

Thank you for your answer!

 

No, I don't need direct access to Mongrel.

What about this Apache proxy, should I make an .htaccess with some directives for it or is this feature embedded by default?

My problem was that after i created and started new RoR application it didn't work in browser. And I couldn't find any info about apache proxy in manual at heliohost.org

 

Posted

It's actually right in cPanel. On second thought, they might use mod_rewrite? Regardless, there is some automated configuration to add directives to your .htaccess to allow traffic on port 80.

Guest
This topic is now closed to further replies.
×
×
  • Create New...