使用 WEBrick,您可以通过导航到 your.ip.address.here:port 导航到您正在从另一台设备/虚拟机提供服务的应用程序
是否可以用 pow.cx 做类似的事情?
最佳答案
最新版本的 Pow (0.4.0) 现在包含 xip.io支持。您可以阅读有关此版本的信息 here .
以下是 Pow 如何帮助 Pow 在您的整个本地网络中为您的 Rails 应用程序提供服务的快速解释,来自他们的帖子:
Say your development computer’s LAN IP address is 10.0.0.1. With the new version of Pow, you can now access your app at http://myapp.10.0.0.1.xip.io/. And xip.io supports wildcard DNS, so any and all subdomains of 10.0.0.1.xip.io resolve too.
这是他们网站上对 xip.io 的描述:
xip.io runs a custom DNS server on the public Internet. When your computer looks up a xip.io domain, the xip.io DNS server extracts the IP address from the domain and sends it back in the response.
关于ruby-on-rails - 远程查看 pow.cx 提供的网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6379453/