ruby-on-rails - 远程查看 pow.cx 提供的网页

标签 ruby-on-rails rack-pow

使用 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/

相关文章:

ruby-on-rails - rails : Puma server 3 not showing database queries in development

ruby-on-rails - 使用 Pow 的欢迎使用 Rails 屏幕上的 SyntaxError

ruby-on-rails - 项目升级后 Pow 不会更改 ruby​​ 版本

ruby-on-rails - Pry-Remote 未触发 Rails 4

ruby-on-rails - Rails 应用程序的入口点在哪里?

ruby-on-rails - Rails Capistrano - 每当 Cron 为每个部署附加 cron 作业时

sql - 远程 MSSQL/ODBC 与 Rails 同步

ruby-on-rails - Pow服务器: serving local rails app via myapp. dev.com域

ruby-on-rails - 如果使用 Pow,我应该使用 default_url_options[ :host] for integration testing, 什么?

ruby-on-rails - 单页应用程序上的cancan