ruby / ruby/TryRuby

Occupied ports and notifications

Open
#135 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
256
Forks
110
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the bin/middleman server command and the documentation describing http://localhost:4567. Check how the command handles an occupied port and startup timing; done means it selects or reports a usable local URL and the documentation explains when and where to connect.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.