OK, lets try two things. Working up from my zero dependency Ruby test
script first, try this Ruby program next:
---
require 'sinatra'
get '/' do
"Hello world! The time is #{Time.now}\n"
end
---
Once that is running, visit http://localhost:4567/
Next, lets try working down from a full passenger application. From
the whimsy/roster directory, try the following command:
bundle exec rackup
Once that is running, visit http://localhost:9292/
- Sam Ruby
On Sat, May 16, 2020 at 7:23 PM Craig Russell <[email protected]> wrote:
>
> 192.168.0.12:5678 works
> 192.168.0.12:3000 hangs
> localhost:3000 hangs
> localhost:5678 works
> whimsy.local:3000 hangs
> whimsy.local:5678 works
> 0.0.0.0 can't connect
> 0.0.0.0:3000 hangs
> 0.0.0.0:5678 works
>
>
> > On May 16, 2020, at 4:48 AM, Sam Ruby <[email protected]> wrote:
> >
> > On Sat, May 16, 2020 at 12:18 AM Craig Russell <[email protected]> wrote:
> >>
> >> While the script was running, I could reload the page and the time would
> >> change. Once I killed the script, the browser could not connect to the
> >> server any more.
> >
> > Cool. Now with both the test.rb and rake server running, try various
> > combinations of:
> >
> > hosts: 192.168.0.12, localhost, whimsy.local, 0.0.0.0
> > ports: 5678, 3000
> >
> > Which combinations work, and which do not?
> >
> > - Sam Ruby
>
> Craig L Russell
> [email protected]
>