Jump to content

[Solved] Cannot View Ruby On Rails Application


ejweb

Recommended Posts

Hello,

 

After setting up a Ruby on Rails application on my account using the instructions from the "Deploying a Rails application on HelioHost" Web page (http://wiki.helionet.org/Deploying_a_Rails_application_on_HelioHost), I cannot view RB files on my Web site. I have uploaded an RB file to the "/home/ejweb/rails_apps/test/" directory called "index.rb", and had given it a chmod of 755. However, when I look at the script file on the Web site at http://www.ejweb.tk/test/index.rb, it displays a blank Web page. Is the "/home/ejweb/rails_apps/test/" path the correct directory to upload RB files?

 

Additionally, I get a connection timed out error message when I go to http://ejweb.tk:12955/ directly. Is this behaviour normal?

Link to comment
Share on other sites

This support request is being escalated to our root admin.

 

I saw your question on IRC, but you logged off before I could respond to it. I also normally don't handle any issues on the forum that aren't escalated to me, but this one may have slipped through the cracks.

 

I tested your issue, and I found that the .htaccess rewrite rules don't seem to like all the backslash escapes anymore.

 

I got it working for you. All I did was edit /home/ejweb/public_html/.htaccess and change

RewriteRule ^test\/(.*) "http\:\/\/127\.0\.0\.1\:12955\/$1" [P,L]

to

RewriteRule ^test(.*) "http\:\/\/127\.0\.0\.1\:12374\/$1" [P,L]

 

Let us know if you're having any other issues, and sorry for the delay helping you with this.

 

http://ejweb.tk/test

Link to comment
Share on other sites

Thank you for looking into my problem. However, it has not solved my original concerns. The RB script file (http://www.ejweb.tk/test/index.rb) still displays a blank Web page, and am still getting a connection timed out error message when I go to http://ejweb.tk:12955/ directly. Would you, or anyone else here on this forum, be able to help me have this resolved?

Link to comment
Share on other sites

I get this:-

Proxy Error

 

The proxy server received an invalid response from an upstream server.

The proxy server could not handle the request GET /test/index.rb.

 

Reason: Error reading from remote server

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  • Like 1
Link to comment
Share on other sites

However, it has not solved my original concerns.

The title of your post is

Cannot View Ruby On Rails Application

The reason you couldn't view your application was because the system didn't like two characters that I removed of the automatically created redirect. Your ruby on rails application could then be viewed once that was fixed. I thought that was your "original concern" since it was the title of your post.

The RB script file http://www.ejweb.tk/test/index.rb still displays a blank Web page

The reason it displays a blank web page is because /home/ejweb/rails_apps/test/ is not publicly visible. It is the root of your application, but it cannot be seen with a browser. If you read http://guides.rubyonrails.org/getting_started.html you can see that /home/ejweb/rails_apps/test/public/ is the publicly accessible webroot of your rails application. I created a test file so you can see what I mean located at http://ejweb.tk/test/index2.html

and am still getting a connection timed out error message when I go to http://ejweb.tk:12955 directly.

That's because ejweb.tk:12955 is not publicly accessible. This is a security concern on a large scale shared server such as what we host. If you want to view your rails app remotely you will have to view it through the redirect.

Would you, or anyone else here on this forum, be able to help me have this resolved?

Sure.

Link to comment
Share on other sites

Thank you, Krydos, for going through my concerns in detail, addressing areas using quotations from my previous message. As I have just started learning Ruby on Rails, my understanding of the Web site development process and its file system is extremely limited. My apologies if I had not expressed my problem properly from my first message. I will go through the Web site that you had provided to gain a better understanding of how Ruby on Rails works. Should I have any non-technical-related problems regarding your hosting service, I will request for some assistance in the Questions section of this forum. Thank you. Your help was greatly appreciated.

Link to comment
Share on other sites

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