ruby / TryRuby

This 4th iteration of TryRuby is a website where you can learn the Ruby language.
https://try.ruby-lang.org
MIT License
224 stars 97 forks source link

Occupied ports and notifications #135

Open rubyFeedback opened 2 years ago

rubyFeedback commented 2 years ago

I did:

bin/middleman server

The documentation then says:

Then visit http://localhost:4567.

However nothing happened there. This may be because I have had a sinatra app running on that port.

Would it be possible for TryRuby to first check for open ports; then use an open port; and also on the commandline show which local URL I could use? Sinatra does that by the way.

Edit: Actually it now works at:

http://127.0.0.1:4567/

Perhaps the documentation can mention that we should wait a bit? It seems it took a few seconds or so. Now it works hmmm.