ruby / ruby/TryRuby

Occupied ports and notifications

未关闭
#135 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Ruby
星标
256
派生
110
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 bin/middleman server 命令以及描述 http://localhost:4567 的文档开始。检查该命令如何处理已被占用的端口和启动时机;完成的标准是它选择或报告一个可用的本地 URL,并且文档说明何时以及连接到哪里。

由索引模型根据 Issue 内容生成。

评估

技术栈
ruby
领域
cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。