foolishbrat
2007-Sep-01 06:43 UTC
What is the URL to view my first rails app under Apache?
Dear expert, I have succesfully created an initial app with Ruby with the following step: [ewijaya@defiant library]$ pwd /home/ewijaya/public_html/MyRuby/library [ewijaya@defiant library]$ ruby script/server => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2007-09-01 14:38:48] INFO WEBrick 1.3.1 [2007-09-01 14:38:48] INFO ruby 1.8.6 (2007-03-13) [i686-linux] [2007-09-01 14:38:48] INFO WEBrick::HTTPServer#start: pid=18863 port=3000 However I''m not sure what is the URL so that I can see the Greeting message from WEBrick? What I have so far is this? http://defiant.i2r.a-star.edu.sg/~ewijaya/MyRuby/library/ Thanks and hope to hear from you again. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Wang
2007-Sep-01 07:46 UTC
Re: What is the URL to view my first rails app under Apache?
foolishbrat wrote:> Dear expert, > > I have succesfully created an initial app with Ruby > with the following step: > > [ewijaya@defiant library]$ pwd > /home/ewijaya/public_html/MyRuby/library > > > [ewijaya@defiant library]$ ruby script/server > => Booting WEBrick... > => Rails application started on http://0.0.0.0:3000 > => Ctrl-C to shutdown server; call with --help for options > [2007-09-01 14:38:48] INFO WEBrick 1.3.1 > [2007-09-01 14:38:48] INFO ruby 1.8.6 (2007-03-13) [i686-linux] > [2007-09-01 14:38:48] INFO WEBrick::HTTPServer#start: pid=18863 > port=3000 > > However I''m not sure what is the URL so that I can see the Greeting > message > from WEBrick? > > What I have so far is this? > > http://defiant.i2r.a-star.edu.sg/~ewijaya/MyRuby/library/ > > Thanks and hope to hear from you again.Try: http://defiant.i2r.a-star.edu.sg:3000/ -- Michael Wang --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
foolishbrat
2007-Sep-01 15:06 UTC
Re: What is the URL to view my first rails app under Apache?
Hi Michael,> > http://defiant.i2r.a-star.edu.sg:3000/ >I tried that but it gives: Firefox can''t establish a connection to the server at defiant.i2r.a-star.edu.sg:3000. Any idea why? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello, Is it a server you control yourself, or could it be possible that there is a firewall blocking connections on port 3000? You could put the -p <portno> switch on to set WebBrick to listen to another port instead. Rich On Sep 1, 11:06 am, foolishbrat <ewij...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Michael, > > > > >http://defiant.i2r.a-star.edu.sg:3000/ > > I tried that but it gives: > Firefox can''t establish a connection to the > server at defiant.i2r.a-star.edu.sg:3000. > > Any idea why?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
rein.henrichs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-02 02:31 UTC
Re: What is the URL to view my first rails app under Apache?
Assuming that this is on your local computer, the address is already listed: http://0.0.0.0:3000 which is basically the same as http://localhost:3000 Otherwise, you would need to connect to that box on port 3000 through either its ip or its hostname to see the page, which takes us beyond the scope of rails. If you''re having trouble doing that, the port may be blocked by a firewall, etc. Rein On Sep 1, 1:43 am, foolishbrat <ewij...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Dear expert, > > I have succesfully created an initial app with Ruby > with the following step: > > [ewijaya@defiant library]$ pwd > /home/ewijaya/public_html/MyRuby/library > > [ewijaya@defiant library]$ ruby script/server > => Booting WEBrick... > => Rails application started onhttp://0.0.0.0:3000 > => Ctrl-C to shutdown server; call with --help for options > [2007-09-01 14:38:48] INFO WEBrick 1.3.1 > [2007-09-01 14:38:48] INFO ruby 1.8.6 (2007-03-13) [i686-linux] > [2007-09-01 14:38:48] INFO WEBrick::HTTPServer#start: pid=18863 > port=3000 > > However I''m not sure what is the URL so that I can see the Greeting > message > from WEBrick? > > What I have so far is this? > > http://defiant.i2r.a-star.edu.sg/~ewijaya/MyRuby/library/ > > Thanks and hope to hear from you again.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Foolish Brat
2007-Sep-03 08:02 UTC
Re: What is the URL to view my first rails app under Apache?
RichM wrote:> Hello, >Hi Rich,> Is it a server you control yourself?I don''t have control to the server (I''m not an SU). I stored all my files under "public_html".> You could put the -p <portno> switch on to set WebBrick to listen to another port instead.Where can I apply the "-p" switch? -- Edward -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---