允许公共连接到本地 Ruby on Rails 开发服务器 [英] Allow public connections to local Ruby on Rails Development Server

查看:49
本文介绍了允许公共连接到本地 Ruby on Rails 开发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Windows 机器上设置 RoR 开发环境.我想知道如何设置它以便我的几个朋友可以访问网络服务器并监控进度?

I am setting up a RoR development environment on a Windows machine. I was wondering how I can set it up so a few friends of mine can have access to the web server and monitor the progress?

最多只能有 2 或 3 人在任何时间连接.

It would only be 2 or 3 people connecting at anytime time max.

推荐答案

试试 localtunnel.这是一颗红宝石,所以你应该不会有任何问题:

Give localtunnel a go. It's a ruby gem so you shouldn't have any problem getting it going:

gem install localtunnel
localtunnel 3000

您第一次这样做时,它会要求您提供 ssh 密钥,但是一旦您获得了该设置,它就会向您显示可以共享的公共 URL.在指定端口上运行的任何内容都将在该 url 上公开.

The first time you do that it'll ask you for an ssh key, but once you've got that set it'll show you the public url that you can share. Anything running on the specified port will get exposed at that url.

Showoff-io 貌似是一个类似的服务,但是我没用过所以无法评论.此外,它是付费的,需要注册.

Showoff-io looks like a similar service, but I haven't used it so I can't comment. Also, it's paid and requires signup.

这篇关于允许公共连接到本地 Ruby on Rails 开发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆